[gnome-shell] messageTray: Don't hide the tray for urgent notifications
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Don't hide the tray for urgent notifications
- Date: Mon, 20 May 2013 18:26:08 +0000 (UTC)
commit d1c54f55e64a5d83fe1ab78b3d926246f2eb0317
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon May 20 13:31:43 2013 -0400
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
js/ui/messageTray.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 635ee26..147f8cf 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2231,11 +2231,7 @@ const MessageTray = new Lang.Class({
this._ensureNotificationFocused();
}
- let notificationsVisible = this._notificationState != State.HIDDEN;
- let notificationsDone = !notificationsVisible && !notificationsPending;
-
- let mustHideTray = ((notificationsPending && notificationUrgent)
- || notificationsVisible || !Main.sessionMode.hasNotifications);
+ let mustHideTray = this._notificationState != State.HIDDEN || !Main.sessionMode.hasNotifications;
// Summary notification
let haveClickedSummaryItem = this._clickedSummaryItem != null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]