diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 8f480d4cc..0e5557eb0 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -126,13 +126,12 @@ const NotificationsBox = new Lang.Class({ }, _updateVisibility: function() { - if (this._residentNotificationBox.get_n_children() > 0) { - this.actor.show(); - return; - } + this._residentNotificationBox.visible = this._residentNotificationBox.get_n_children() > 0; + this._persistentNotificationBox.visible = this._persistentNotificationBox.get_children().some(function(a) { + return a.visible; + }); - let children = this._persistentNotificationBox.get_children(); - this.actor.visible = children.some(function(a) { return a.visible; }); + this.actor.visible = this._residentNotificationBox.visible || this._persistentNotificationBox.visible; }, _sourceIsResident: function(source) {