[gnome-shell] loginDialog: move prompt hiding code to hidePrompt



commit 963e808d98c01289fb9dbeb2050c1e5ba6627eaa
Author: Ray Strode <rstrode redhat com>
Date:   Sun Feb 17 20:41:40 2013 -0500

    loginDialog: move prompt hiding code to hidePrompt
    
    The sessionList and the prompt hint are all really
    part of the prompt, so we should have the code that
    hides those things in hidePrompt instead of in
    showUserList.
    
    This commit does that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694062

 js/gdm/loginDialog.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 7ed4ce5..79d88b8 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -850,6 +850,9 @@ const LoginDialog = new Lang.Class({
         this._updateSensitivity(true);
         this._promptEntry.set_text('');
 
+        this._sessionList.close();
+        this._promptLoginHint.hide();
+
         this.clearButtons();
         this._workSpinner = null;
         this._signInButton = null;
@@ -1075,8 +1078,6 @@ const LoginDialog = new Lang.Class({
 
     _showUserList: function() {
         this._hidePrompt();
-        this._sessionList.close();
-        this._promptLoginHint.hide();
         this._userList.actor.show();
         this._userList.actor.opacity = 255;
         this._notListedButton.show();


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