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
This commit is contained in:
parent
3e6b794a33
commit
75d44dca6b
@ -171,12 +171,14 @@ const KeyringDialog = new Lang.Class({
|
|||||||
_onShowPassword: function(prompt) {
|
_onShowPassword: function(prompt) {
|
||||||
this._buildControlTable();
|
this._buildControlTable();
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
|
this._updateSensitivity(true);
|
||||||
this._passwordEntry.grab_key_focus();
|
this._passwordEntry.grab_key_focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
_onShowConfirm: function(prompt) {
|
_onShowConfirm: function(prompt) {
|
||||||
this._buildControlTable();
|
this._buildControlTable();
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
|
this._updateSensitivity(true);
|
||||||
this._continueButton.grab_key_focus();
|
this._continueButton.grab_key_focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -185,12 +187,10 @@ const KeyringDialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onPasswordActivate: function() {
|
_onPasswordActivate: function() {
|
||||||
if (this.prompt.confirm_visible) {
|
if (this.prompt.confirm_visible)
|
||||||
this._updateSensitivity(true);
|
|
||||||
this._confirmEntry.grab_key_focus();
|
this._confirmEntry.grab_key_focus();
|
||||||
} else {
|
else
|
||||||
this._onContinueButton();
|
this._onContinueButton();
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_onConfirmActivate: function() {
|
_onConfirmActivate: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user