userMenu: Update user name on session mode changes

The new privacy panel offers separate settings for the user name
visibility in lock screen and normal mode. The code to support
either setting is already in place, but we need to make sure to
update the user name on session mode changes to pick up the correct
one.

https://bugzilla.gnome.org/show_bug.cgi?id=690049
This commit is contained in:
Florian Müllner 2012-12-11 17:09:34 +01:00
parent 5a7b7b7389
commit fc696bc054

View File

@ -593,6 +593,7 @@ const UserMenuButton = new Lang.Class({
this.setSensitive(!Main.sessionMode.isLocked); this.setSensitive(!Main.sessionMode.isLocked);
this._updatePresenceIcon(); this._updatePresenceIcon();
this._updateUserName();
}, },
_onDestroy: function() { _onDestroy: function() {