diff options
| -rw-r--r-- | modules/lock/Center.qml | 2 | ||||
| -rw-r--r-- | modules/lock/LockSurface.qml | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/modules/lock/Center.qml b/modules/lock/Center.qml index 574894b..4905058 100644 --- a/modules/lock/Center.qml +++ b/modules/lock/Center.qml @@ -124,7 +124,7 @@ ColumnLayout { } Keys.onPressed: event => { - if (!root.lock.locked) + if (root.lock.unlocking) return; if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return) diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index d773c63..acdc7f2 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -13,10 +13,8 @@ WlSessionLockSurface { required property WlSessionLock lock required property Pam pam + readonly property alias unlocking: unlockAnim.running readonly property bool animating: initAnim.running || unlockAnim.running - property bool locked - - Component.onCompleted: locked = true color: "transparent" @@ -24,7 +22,6 @@ WlSessionLockSurface { target: root.lock function onUnlock(): void { - root.locked = false; unlockAnim.start(); } } |