[gnome-shell] loginDialog: fix session menu visibility



commit 945b357ed802b74583fe885342c543f2af0b84d5
Author: Ray Strode <rstrode redhat com>
Date:   Fri Aug 16 13:26:13 2013 -0400

    loginDialog: fix session menu visibility
    
    The shouldShowSessionMenu function has a few bugs in it.
    This fixes them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706153

 js/gdm/loginDialog.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 27c7ef1..46bd895 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -601,13 +601,10 @@ const LoginDialog = new Lang.Class({
     },
 
     _shouldShowSessionMenuButton: function() {
-        if (this._authPrompt.verifyingUser)
-          return true;
-
-        if (!this._user)
+        if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFYING)
           return false;
 
-        if (this._user.is_logged_in)
+        if (this._user && this._user.is_logged_in())
           return false;
 
         return true;


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