messageTray: Don't hide the tray for urgent notifications

The tray should never close on its own, without the user's input.

https://bugzilla.gnome.org/show_bug.cgi?id=700639
This commit is contained in:
Jasper St. Pierre 2013-05-20 13:31:43 -04:00
parent 176a73f4e9
commit d1c54f55e6

View File

@ -2231,11 +2231,7 @@ const MessageTray = new Lang.Class({
this._ensureNotificationFocused(); this._ensureNotificationFocused();
} }
let notificationsVisible = this._notificationState != State.HIDDEN; let mustHideTray = this._notificationState != State.HIDDEN || !Main.sessionMode.hasNotifications;
let notificationsDone = !notificationsVisible && !notificationsPending;
let mustHideTray = ((notificationsPending && notificationUrgent)
|| notificationsVisible || !Main.sessionMode.hasNotifications);
// Summary notification // Summary notification
let haveClickedSummaryItem = this._clickedSummaryItem != null; let haveClickedSummaryItem = this._clickedSummaryItem != null;