[gnome-shell] userMenu: More show()/hide() refactoring
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] userMenu: More show()/hide() refactoring
- Date: Thu, 10 May 2012 13:55:57 +0000 (UTC)
commit d955adbbadb639ed2bc4b0ef92f0d65eed8ac591
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu May 10 15:42:36 2012 +0200
userMenu: More show()/hide() refactoring
Here's one show()/hide() sequence left out in commit 723a1c843 ...
js/ui/userMenu.js | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index 5ae4ae6..93f4dc3 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -544,12 +544,9 @@ const UserMenuButton = new Lang.Class({
_updateSwitchUser: function() {
let allowSwitch = !this._lockdownSettings.get_boolean(DISABLE_USER_SWITCH_KEY);
- if (allowSwitch &&
- this._userManager.can_switch() &&
- this._userManager.has_multiple_users)
- this._loginScreenItem.actor.show();
- else
- this._loginScreenItem.actor.hide();
+ this._loginScreenItem.actor.visible = allowSwitch &&
+ this._userManager.can_switch() &&
+ this._userManager.has_multiple_users;
},
_updateLogout: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]