fix lock unlock - WlSessionLock.unlock() is a private slot, not QML-callable

This commit is contained in:
Damocles 2026-04-17 15:53:33 +02:00
parent d58d4b0078
commit 2a50ab62b7
2 changed files with 4 additions and 3 deletions

View file

@ -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;
}

View file

@ -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();
}