From fd2944fa8d905460212c73fa943d229f2529da84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 30 Jan 2013 15:19:54 +0100 Subject: [PATCH] userMenu: Update logout item when always-show-log-out changes https://bugzilla.gnome.org/show_bug.cgi?id=692996 --- js/ui/userMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index a967ac276..40710a523 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -555,6 +555,8 @@ const UserMenuButton = new Lang.Class({ Lang.bind(this, this._updateLogout)); this._lockdownSettings.connect('changed::' + DISABLE_LOCK_SCREEN_KEY, Lang.bind(this, this._updateLockScreen)); + global.settings.connect('changed::' + ALWAYS_SHOW_LOG_OUT_KEY, + Lang.bind(this, this._updateLogout)); this._screenSaverSettings.connect('changed::' + SHOW_FULL_NAME_IN_TOP_BAR_KEY, Lang.bind(this, this._updateUserName)); this._privacySettings.connect('changed::' + SHOW_FULL_NAME_IN_TOP_BAR_KEY,