messageTray: Fix condition for adding the tray to CtrlAltTab
With the current condition, we wrongly add the message tray to CtrlAltTab if we start up locked or as greeter. https://bugzilla.gnome.org/show_bug.cgi?id=708380
This commit is contained in:
parent
02c99e4b25
commit
c8a07dd612
@ -1805,8 +1805,9 @@ const MessageTray = new Lang.Class({
|
||||
},
|
||||
|
||||
_sessionUpdated: function() {
|
||||
if ((Main.sessionMode.isLocked || Main.sessionMode.isGreeter) && this._inCtrlAltTab) {
|
||||
Main.ctrlAltTabManager.removeGroup(this._summary);
|
||||
if (Main.sessionMode.isLocked || Main.sessionMode.isGreeter) {
|
||||
if (this._inCtrlAltTab)
|
||||
Main.ctrlAltTabManager.removeGroup(this._summary);
|
||||
this._inCtrlAltTab = false;
|
||||
} else if (!this._inCtrlAltTab) {
|
||||
Main.ctrlAltTabManager.addGroup(this._summary, _("Message Tray"), 'user-available-symbolic',
|
||||
|
Loading…
Reference in New Issue
Block a user