Show the session list when needed

Some of the conditions for showing the user list were not
properly inverted, causing the session list to be hidden
when it shouldn't be and shown when it shouldn't be.

https://bugzilla.gnome.org/show_bug.cgi?id=694784
This commit is contained in:
Matthias Clasen 2013-02-26 23:50:29 -05:00 committed by Ray Strode
parent 41f14e0e89
commit a7bb6a2781

View File

@ -753,7 +753,7 @@ const LoginDialog = new Lang.Class({
time: _FADE_ANIMATION_TIME, time: _FADE_ANIMATION_TIME,
transition: 'easeOutQuad' }); transition: 'easeOutQuad' });
if (!this._user || (this._user.is_logged_in() && this._verifyingUser)) if ((this._user && !this._user.is_logged_in()) || this._verifyingUser)
this._sessionList.actor.show(); this._sessionList.actor.show();
this._promptEntry.grab_key_focus(); this._promptEntry.grab_key_focus();