mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
unlockDialog: Don't create AuthDialog just to finish it
If the the unlock dialog gets finished before an auth dialog is created, the code currently creates one just to tell it to finish. This commit changes the code to skip creating the auth dialog in that case. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1999>
This commit is contained in:
parent
4d1ce0de41
commit
5d5bfe492c
1 changed files with 5 additions and 1 deletions
|
|
@ -872,7 +872,11 @@ var UnlockDialog = GObject.registerClass({
|
|||
}
|
||||
|
||||
finish(onComplete) {
|
||||
this._ensureAuthPrompt();
|
||||
if (!this._authPrompt) {
|
||||
onComplete();
|
||||
return;
|
||||
}
|
||||
|
||||
this._authPrompt.finish(onComplete);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue