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:
Florian Müllner 2019-01-29 15:30:40 +01:00 committed by Florian Müllner
parent 95a31b0c31
commit 8f732e4f45

View File

@ -497,9 +497,12 @@ class NotificationBanner extends Calendar.NotificationMessage {
});
}
_onDestroy() {
super._onDestroy();
_disconnectNotificationSignals() {
super._disconnectNotificationSignals();
if (this._activatedId)
this.notification.disconnect(this._activatedId);
this._activatedId = 0;
}
_onUpdated(n, clear) {