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
@ -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…
Reference in New Issue
Block a user