fix crash: defer layer disable with Qt.callLater to avoid destruction during signal handler
This commit is contained in:
parent
7e9baa9b7e
commit
62cd0f9a76
1 changed files with 3 additions and 1 deletions
|
|
@ -40,7 +40,9 @@ WlSessionLockSurface {
|
||||||
|
|
||||||
onUPhaseChanged: {
|
onUPhaseChanged: {
|
||||||
if (!_overlay._revealed && uPhase >= _overlay.width)
|
if (!_overlay._revealed && uPhase >= _overlay.width)
|
||||||
|
Qt.callLater(() => {
|
||||||
_overlay._revealed = true;
|
_overlay._revealed = true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue