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 message: ""
property string buffer: "" property string buffer: ""
signal unlockRequested
signal authFailed signal authFailed
function submit() { function submit() {
@ -42,7 +43,7 @@ QtObject {
if (res === PamResult.Success) { if (res === PamResult.Success) {
root.state = ""; root.state = "";
root.message = ""; root.message = "";
root.lock.unlock(); root.unlockRequested();
return; return;
} }

View file

@ -186,9 +186,9 @@ WlSessionLockSurface {
property bool _unlocking: false property bool _unlocking: false
Connections { Connections {
target: root.lock target: root.auth
function onUnlock() { function onUnlockRequested() {
root._unlocking = true; root._unlocking = true;
_unlockAnim.start(); _unlockAnim.start();
} }