Skip to content

Commit 8326039

Browse files
committed
lock: clear password buffer on unlock
For when unlocking via ipc/globalshortcut
1 parent 00b5e88 commit 8326039

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/lock/Pam.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,12 @@ Scope {
6363
interval: 4000
6464
onTriggered: root.state = ""
6565
}
66+
67+
Connections {
68+
target: root.lock
69+
70+
function onUnlock(): void {
71+
root.buffer = "";
72+
}
73+
}
6674
}

0 commit comments

Comments
 (0)