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:
Jonas Dreßler 2019-06-23 16:33:20 +02:00 committed by Florian Müllner
parent cd36301d2b
commit 5c7a701a68

View File

@ -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() {