diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 1c7f0bab4..9ccc6e4f7 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1327,8 +1327,9 @@ const SummaryItem = new Lang.Class({ } } - if (this.notificationStack.get_children().length > 0) - this.notificationStack.get_children()[0]._delegate.setIconVisible(true); + let firstNotification = this._stackedNotifications[0]; + if (firstNotification) + firstNotification.notification.setIconVisible(true); } }); Signals.addSignalMethods(SummaryItem.prototype);