authPrompt: Don't fail auth prompt until user is out of retries
At the moment we set the state of the auth prompt to failed any time the user fails an attempt. But verification is still going on until the user exhausts all attempts, so that's wrong. This commit changes it to only set the state to failed when the user is out of tries. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1821>
This commit is contained in:
parent
a56d508d69
commit
a97c4b8945
@ -329,6 +329,8 @@ var AuthPrompt = GObject.registerClass({
|
||||
|
||||
this.updateSensitivity(canRetry);
|
||||
this.setActorInDefaultButtonWell(null);
|
||||
|
||||
if (!canRetry)
|
||||
this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
|
||||
|
||||
if (wasQueryingService)
|
||||
|
Loading…
Reference in New Issue
Block a user