[gnome-shell/gbsneto/new-lock-screen-part2: 18/34] screenShield: Rename _liftShield to _activateDialog



commit 8311535b02f4c6ba2a304f3e564a3c871819e386
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jan 30 11:30:55 2020 -0300

    screenShield: Rename _liftShield to _activateDialog
    
    Lifting the shield is now what happens *after* successfully logging
    in, not before. Now, what we do is activate the dialog before logging
    in.
    
    Rename the method to reflect that.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872

 js/ui/screenShield.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index b2b7c8a953..faa1b666e4 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -86,14 +86,14 @@ var ScreenShield = class {
         this._smartcardManager.connect('smartcard-inserted',
                                        (manager, token) => {
                                            if (this._isLocked && token.UsedToLogin)
-                                               this._liftShield();
+                                               this._activateDialog();
                                        });
 
         this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
         this._oVirtCredentialsManager.connect('user-authenticated',
                                               () => {
                                                   if (this._isLocked)
-                                                      this._liftShield();
+                                                      this._activateDialog();
                                               });
 
         this._loginManager = LoginManager.getLoginManager();
@@ -157,7 +157,7 @@ var ScreenShield = class {
         this._syncInhibitor();
     }
 
-    _liftShield() {
+    _activateDialog() {
         if (this._isLocked) {
             this._ensureUnlockDialog(true /* allowCancel */);
             this._dialog.activate();
@@ -220,7 +220,7 @@ var ScreenShield = class {
             GLib.unichar_isgraph(unichar))
             this._dialog.addCharacter(unichar);
 
-        this._liftShield();
+        this._activateDialog();
         return Clutter.EVENT_STOP;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]