From 5322e9a64391a0f2a834d0458a66943d4d0105e0 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 7 Jan 2011 16:22:28 +0100 Subject: [PATCH] notificationDaemon: Fix trayIcon check Correctly detect non tray icons and use the ShellApp's icon in that case. --- js/ui/notificationDaemon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 719700874..cbf34cf35 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -476,8 +476,8 @@ Source.prototype = { return; // Only override the icon if we were previously using - // notification-based icons (ie, not a trayicon) - if (this.useNotificationIcon) { + // notification-based icons (ie, not a trayicon) or if it was unset before + if (!this._isTrayIcon) { this.useNotificationIcon = false; this._setSummaryIcon(this.app.create_icon_texture (this.ICON_SIZE)); }