messageTray: Let the tray decide whether to show a banner

Always use the same code path to add new messages to a source, and
let the `MessageTray` decide whether it shows a banner.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:
Julian Sparber
2024-02-12 12:29:35 +01:00
committed by Florian Müllner
parent 940b658071
commit 34f05b075b
13 changed files with 65 additions and 55 deletions

View File

@ -354,7 +354,7 @@ export class ExtensionManager extends Signals.EventEmitter {
_('Extension updates are ready to be installed.'));
notification.connect('activated',
() => source.open());
source.showNotification(notification);
source.addNotification(notification);
}
}