gdm: Remove the (partially) unused cancelled signal
When we emit the 'cancelled' signal if we were previously verifying, we'll always emit a 'failed' signal. LoginDialog doesn't care about cancelled, only UnlockDialog cares about both, but it does the same thing for both, so there's no reason to have the extra signal.
This commit is contained in:
parent
7afb503666
commit
0c511c884b
@ -493,7 +493,6 @@ const AuthPrompt = new Lang.Class({
|
||||
|
||||
cancel: function() {
|
||||
this.reset();
|
||||
this.emit('cancelled');
|
||||
}
|
||||
});
|
||||
Signals.addSignalMethods(AuthPrompt.prototype);
|
||||
|
@ -53,7 +53,6 @@ const UnlockDialog = new Lang.Class({
|
||||
|
||||
this._authPrompt = new AuthPrompt.AuthPrompt(new Gdm.Client(), AuthPrompt.AuthPromptMode.UNLOCK_ONLY);
|
||||
this._authPrompt.connect('failed', Lang.bind(this, this._fail));
|
||||
this._authPrompt.connect('cancelled', Lang.bind(this, this._fail));
|
||||
this._authPrompt.connect('reset', Lang.bind(this, this._onReset));
|
||||
this._authPrompt.setPasswordChar('\u25cf');
|
||||
this._authPrompt.nextButton.label = _("Unlock");
|
||||
|
Loading…
Reference in New Issue
Block a user