Face unlock window steps aside while Apply asks for the password
CI / test (push) Canceled after 3m23s
CI / test (push) Canceled after 3m23s
After Apply the window kept the keyboard and the pointer and its dimmed card covered the screen, so a password dialog that isn't Chandra's own (another polkit agent's window) couldn't be reached. While Apply waits, the window now shows only a note at the top and takes no input. A refused or cancelled password brings it back with the snaps and marks kept (chandra-face camera restarts the camera instead of exiting) and says so. Test: snaps, Enter, the password dialog gets typing (Space no longer snaps underneath) and the Authenticate click, then the root step finishes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf
This commit is contained in:
8 files changed
+150
-8
No files matched your search
@@ -573,7 +573,15 @@ fn FaceUnlock::window_line(self : FaceUnlock, w : FaceWindow, kind : String, tex
|
||||
w.message = text
|
||||
w.error = true
|
||||
}
|
||||
"applied" => if text != "0" && !w.error { w.message = "Nothing changed" }
|
||||
"applied" =>
|
||||
if text != "0" {
|
||||
// Refused or cancelled: the camera starts again, the snaps and marks are still there.
|
||||
w.applying = false
|
||||
if !w.error {
|
||||
w.message = "Nothing changed: the administrator password wasn't given"
|
||||
w.error = true
|
||||
}
|
||||
}
|
||||
_ => ()
|
||||
}
|
||||
self.touch()
|
||||
|
||||
Reference in new issue
Block a user