Fix clicking on notification icons after updates
When a notification is updated by the application, the corresponding app in its source is lost, so it is no longer possible to switch to the application by clicking either the notification or the summary icon. As the associated application of a source never changes, it appears safe to leave it alone on notification updates. https://bugzilla.gnome.org/show_bug.cgi?id=610820
This commit is contained in:
parent
c20a7d4b01
commit
edbfafc5bd
@ -300,6 +300,9 @@ Source.prototype = {
|
||||
_init: function(sourceId, icon, hints) {
|
||||
MessageTray.Source.prototype._init.call(this, sourceId);
|
||||
|
||||
this.app = null;
|
||||
this._openAppRequested = false;
|
||||
|
||||
this.update(icon, hints);
|
||||
},
|
||||
|
||||
@ -309,9 +312,6 @@ Source.prototype = {
|
||||
this._icon = icon;
|
||||
this._iconData = hints.icon_data;
|
||||
this._urgency = hints.urgency;
|
||||
|
||||
this.app = null;
|
||||
this._openAppRequested = false;
|
||||
},
|
||||
|
||||
createIcon: function(size) {
|
||||
|
Loading…
Reference in New Issue
Block a user