mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
unlockDialog: Only cancel AuthPrompt if it exists
AuthPrompt is created on demand, and this._authPrompt is expected to be null except on very strictly controlled occasions. The idle monitor callback isn't one of them. Check if AuthPrompt exists before cancelling it. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2371
This commit is contained in:
parent
aafec16f49
commit
bea34da289
1 changed files with 1 additions and 1 deletions
|
|
@ -761,7 +761,7 @@ var UnlockDialog = GObject.registerClass({
|
|||
}
|
||||
|
||||
_escape() {
|
||||
if (this.allowCancel)
|
||||
if (this._authPrompt && this.allowCancel)
|
||||
this._authPrompt.cancel();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue