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