messageTray: Disconnect signals when resetting notification
Just like we did for the parent class in commit b57832716a
, we should
disconnect any notification signals when the notification is reset
to null to avoid warnings later.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/942
This commit is contained in:
parent
95a31b0c31
commit
8f732e4f45
@ -497,9 +497,12 @@ class NotificationBanner extends Calendar.NotificationMessage {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDestroy() {
|
_disconnectNotificationSignals() {
|
||||||
super._onDestroy();
|
super._disconnectNotificationSignals();
|
||||||
|
|
||||||
|
if (this._activatedId)
|
||||||
this.notification.disconnect(this._activatedId);
|
this.notification.disconnect(this._activatedId);
|
||||||
|
this._activatedId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onUpdated(n, clear) {
|
_onUpdated(n, clear) {
|
||||||
|
Loading…
Reference in New Issue
Block a user