mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
polkitAgent: Reset dialog to defaults after cancelling polkit session
Since we don't know if polkit/PAM will request a password (emitting the "request" signal) or use another authentication method like a fingerprint after the current authentication failed, hide the password field and make the "Authenticate" button insensitive after cancelling the session, just like we do when creating the dialog. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/788
This commit is contained in:
parent
cd36301d2b
commit
5c7a701a68
1 changed files with 4 additions and 0 deletions
|
|
@ -304,6 +304,10 @@ var AuthenticationDialog = GObject.registerClass({
|
|||
this._session.disconnect(this._sessionShowInfoId);
|
||||
this._session = null;
|
||||
}
|
||||
|
||||
this._passwordBox.hide();
|
||||
this._cancelButton.grab_key_focus();
|
||||
this._okButton.reactive = false;
|
||||
}
|
||||
|
||||
_onUserChanged() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue