mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
This commit is contained in:
parent
c95ec8e99f
commit
945b357ed8
1 changed files with 2 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue