[gnome-shell] unlockDialog: Simplify sensitivity handling



commit c6cf81f28b20227c30eba8fc22da6e61e1cc83e6
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 19 14:24:51 2020 +0100

    unlockDialog: Simplify sensitivity handling
    
    We only call _updateSensitivity() to make elements sensitive, and
    nothing ever touches the sensitivity of the switch-user button; so
    just call the corresponding authPrompt method directly, which is the
    only bit that has an actual effect.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1029

 js/ui/unlockDialog.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 14bd972d6a..43d3bdbdb0 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -666,7 +666,7 @@ var UnlockDialog = GObject.registerClass({
         this._promptBox.add_child(this._authPrompt);
 
         this._authPrompt.reset();
-        this._updateSensitivity(true);
+        this._authPrompt.updateSensitivity(true);
     }
 
     _maybeDestroyAuthPrompt() {
@@ -682,13 +682,6 @@ var UnlockDialog = GObject.registerClass({
         }
     }
 
-    _updateSensitivity(sensitive) {
-        this._authPrompt.updateSensitivity(sensitive);
-
-        this._otherUserButton.reactive = sensitive;
-        this._otherUserButton.can_focus = sensitive;
-    }
-
     _showClock() {
         if (this._activePage === this._clock)
             return;


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