userMenu: More show()/hide() refactoring

Here's one show()/hide() sequence left out in commit 723a1c843 ...
This commit is contained in:
Florian Müllner 2012-05-10 15:42:36 +02:00
parent 83d3225e57
commit d955adbbad

View File

@ -544,12 +544,9 @@ const UserMenuButton = new Lang.Class({
_updateSwitchUser: function() { _updateSwitchUser: function() {
let allowSwitch = !this._lockdownSettings.get_boolean(DISABLE_USER_SWITCH_KEY); let allowSwitch = !this._lockdownSettings.get_boolean(DISABLE_USER_SWITCH_KEY);
if (allowSwitch && this._loginScreenItem.actor.visible = allowSwitch &&
this._userManager.can_switch() && this._userManager.can_switch() &&
this._userManager.has_multiple_users) this._userManager.has_multiple_users;
this._loginScreenItem.actor.show();
else
this._loginScreenItem.actor.hide();
}, },
_updateLogout: function() { _updateLogout: function() {