From 10ac42d6ad7369bf72cb96613d43c965266fa8c1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 7 Apr 2010 15:32:47 -0400 Subject: [PATCH] messageTray: don't show the same notification in both locations If a notification is already being viewed from the summary area, and it re-emits 'notify', don't show it a second time in the notification area. https://bugzilla.gnome.org/show_bug.cgi?id=614975 --- js/ui/messageTray.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 78227378c..345c6305b 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -596,6 +596,9 @@ MessageTray.prototype = { }, _onNotify: function(source, notification) { + if (notification == this._summaryNotification) + return; + if (this._getNotification(notification.id, source) == null) { notification.connect('destroy', Lang.bind(this, this.removeNotification));