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:

committed by
Florian Müllner

parent
940b658071
commit
34f05b075b
@ -200,7 +200,7 @@ export class ShellMountOperation {
|
||||
this._notification.setTransient(true);
|
||||
this._notification.iconName = 'media-removable-symbolic';
|
||||
this._notification.connect('destroy', () => delete this._notification);
|
||||
source.showNotification(this._notification);
|
||||
source.addNotification(this._notification);
|
||||
}
|
||||
|
||||
_showUnmountNotificationDone(message) {
|
||||
|
Reference in New Issue
Block a user