[gnome-shell/gbsneto/new-lock-screen-part2: 40/59] unlockDialog: Don't destroy on cancel
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 40/59] unlockDialog: Don't destroy on cancel
- Date: Thu, 23 Jan 2020 05:07:14 +0000 (UTC)
commit bf9c2981ce391d0fef8a614daae1b9772ef722c2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 28 19:47:58 2019 -0300
unlockDialog: Don't destroy on cancel
Otherwise there will be no way to recover it in the future. Also
remove an else condition that assumed the dialog would destroy
itself on cancel.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
js/ui/screenShield.js | 2 --
js/ui/unlockDialog.js | 2 --
2 files changed, 4 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 918df05436..3d66a27374 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -191,8 +191,6 @@ var ScreenShield = class {
// on its own, so ensure it stays on lock screen
// instead
this._lockScreenGroup.grab_key_focus();
- } else {
- this._dialog = null;
}
}
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 607766175f..697c96bf79 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -493,8 +493,6 @@ var UnlockDialog = GObject.registerClass({
cancel() {
this._authPrompt.cancel();
-
- this.destroy();
}
addCharacter(unichar) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]