[gnome-shell] unlockDialog: Call AuthPrompt.addCharacter() directly



commit fb1bb291eb5be666fcefd63ec68d33d45d0a6a1b
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Wed Apr 22 21:14:13 2020 +0200

    unlockDialog: Call AuthPrompt.addCharacter() directly
    
    The additional function UnlockDialog.addCharacter() is only used at one
    place, so we can simply remove it and call AuthPrompt.addCharacter()
    directly. The AuthPrompt is shown right before that anyway.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1209

 js/ui/unlockDialog.js | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 2170f12a76..29122ca515 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -605,7 +605,7 @@ var UnlockDialog = GObject.registerClass({
         this._showPrompt();
 
         if (GLib.unichar_isgraph(unichar))
-            this.addCharacter(unichar);
+            this._authPrompt.addCharacter(unichar);
 
         return Clutter.EVENT_PROPAGATE;
     }
@@ -835,11 +835,6 @@ var UnlockDialog = GObject.registerClass({
             this._authPrompt.cancel();
     }
 
-    addCharacter(unichar) {
-        this._showPrompt();
-        this._authPrompt.addCharacter(unichar);
-    }
-
     finish(onComplete) {
         this._ensureAuthPrompt();
         this._authPrompt.finish(onComplete);


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