Commit 75d44dca authored by Jasper St. Pierre's avatar Jasper St. Pierre
Browse files

keyring: Actually ensure sensitivity when the keyring dialog opens

I misunderstood how the control flow for the keyring worked.

https://bugzilla.gnome.org/show_bug.cgi?id=690895
parent 3e6b794a
......@@ -171,12 +171,14 @@ const KeyringDialog = new Lang.Class({
_onShowPassword: function(prompt) {
this._buildControlTable();
this._ensureOpen();
this._updateSensitivity(true);
this._passwordEntry.grab_key_focus();
},
_onShowConfirm: function(prompt) {
this._buildControlTable();
this._ensureOpen();
this._updateSensitivity(true);
this._continueButton.grab_key_focus();
},
......@@ -185,12 +187,10 @@ const KeyringDialog = new Lang.Class({
},
_onPasswordActivate: function() {
if (this.prompt.confirm_visible) {
this._updateSensitivity(true);
if (this.prompt.confirm_visible)
this._confirmEntry.grab_key_focus();
} else {
else
this._onContinueButton();
}
},
_onConfirmActivate: function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment