From 53bfe29a4037486375fd20de8113004f4c2f5bd3 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 17 Aug 2025 15:50:34 +1000 Subject: lock: refactor --- modules/lock/Center.qml | 2 +- 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(); } } -- cgit v1.2.3-freya