messageTray: be sure to remove destroyed notifications from the notification stack
This allows us to correctly identify when the notification stack is empty.
This commit is contained in:
parent
44b4741e35
commit
4a214d8238
@ -1285,6 +1285,8 @@ const SummaryItem = new Lang.Class({
|
||||
notification.disconnect(stackedNotification.notificationDoneDisplayingId);
|
||||
notification.disconnect(stackedNotification.notificationDestroyedId);
|
||||
this._stackedNotifications.splice(i, 1);
|
||||
if (notification.actor.get_parent() == this.notificationStack)
|
||||
this.notificationStack.remove_actor(notification.actor);
|
||||
this._contentUpdated();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user