messageTray: Only take params in Notification
constructor
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:

committed by
Florian Müllner

parent
251a5e9d20
commit
d54219c098
@ -187,10 +187,10 @@ class AutorunDispatcher {
|
||||
return;
|
||||
|
||||
const source = MessageTray.getSystemSource();
|
||||
const notification = new MessageTray.Notification(
|
||||
const notification = new MessageTray.Notification({
|
||||
source,
|
||||
mount.get_name()
|
||||
);
|
||||
title: mount.get_name(),
|
||||
});
|
||||
notification.connect('activate', () => {
|
||||
const app = Gio.app_info_get_default_for_type('inode/directory', false);
|
||||
startAppForMount(app, mount);
|
||||
|
@ -782,7 +782,7 @@ class NetworkAgent {
|
||||
}
|
||||
|
||||
const source = MessageTray.getSystemSource();
|
||||
const notification = new MessageTray.Notification(source, title, body);
|
||||
const notification = new MessageTray.Notification({source, title, body});
|
||||
notification.iconName = 'dialog-password-symbolic';
|
||||
|
||||
notification.connect('activated', () => {
|
||||
|
Reference in New Issue
Block a user