notificationDaemon: Fix trayIcon check

Correctly detect non tray icons and use the ShellApp's icon in that case.
This commit is contained in:
Adel Gadllah 2011-01-07 16:22:28 +01:00
parent 34f8568547
commit 5322e9a643

View File

@ -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));
}