notification: Stop using old setter methods of MessageTray.Notification
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:

committed by
Florian Müllner

parent
9ac4c7da53
commit
1d1d9806f3
@ -195,10 +195,14 @@ export class ShellMountOperation {
|
||||
this._notification?.destroy();
|
||||
|
||||
const source = MessageTray.getSystemSource();
|
||||
this._notification = new MessageTray.Notification({source, title, body});
|
||||
this._notification = new MessageTray.Notification({
|
||||
source,
|
||||
title,
|
||||
body,
|
||||
isTransient: true,
|
||||
iconName: 'media-removable-symbolic',
|
||||
});
|
||||
|
||||
this._notification.setTransient(true);
|
||||
this._notification.iconName = 'media-removable-symbolic';
|
||||
this._notification.connect('destroy', () => delete this._notification);
|
||||
source.addNotification(this._notification);
|
||||
}
|
||||
|
Reference in New Issue
Block a user