From 2a50ab62b7dc681564b944764ddcf5327641a4c8 Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 15:53:33 +0200 Subject: [PATCH] fix lock unlock - WlSessionLock.unlock() is a private slot, not QML-callable --- modules/lock/LockAuth.qml | 3 ++- modules/lock/LockSurface.qml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/lock/LockAuth.qml b/modules/lock/LockAuth.qml index 1bfcb98..76bed4b 100644 --- a/modules/lock/LockAuth.qml +++ b/modules/lock/LockAuth.qml @@ -13,6 +13,7 @@ QtObject { property string message: "" property string buffer: "" + signal unlockRequested signal authFailed function submit() { @@ -42,7 +43,7 @@ QtObject { if (res === PamResult.Success) { root.state = ""; root.message = ""; - root.lock.unlock(); + root.unlockRequested(); return; } diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index f360887..b4fdae5 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -186,9 +186,9 @@ WlSessionLockSurface { property bool _unlocking: false Connections { - target: root.lock + target: root.auth - function onUnlock() { + function onUnlockRequested() { root._unlocking = true; _unlockAnim.start(); }