mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
authPrompt: Do not enable sensitivity if retries are disallowed
Set the sensitivity of the UI according to the canRetry parameter and thus if no more logins are allowed don't take any input. Fixes #311
This commit is contained in:
parent
d21657fe61
commit
8f848925f6
2 changed files with 3 additions and 3 deletions
|
|
@ -242,11 +242,11 @@ var AuthPrompt = new Lang.Class({
|
|||
this.emit('prompted');
|
||||
},
|
||||
|
||||
_onVerificationFailed() {
|
||||
_onVerificationFailed(userVerifier, canRetry) {
|
||||
this._queryingService = null;
|
||||
this.clear();
|
||||
|
||||
this.updateSensitivity(true);
|
||||
this.updateSensitivity(canRetry);
|
||||
this.setActorInDefaultButtonWell(null);
|
||||
this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -565,7 +565,7 @@ var ShellUserVerifier = new Lang.Class({
|
|||
}
|
||||
}
|
||||
|
||||
this.emit('verification-failed');
|
||||
this.emit('verification-failed', canRetry);
|
||||
},
|
||||
|
||||
_onConversationStopped(client, serviceName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue