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
@ -349,9 +349,11 @@ export class ExtensionManager extends Signals.EventEmitter {
|
||||
let source = new ExtensionUpdateSource();
|
||||
Main.messageTray.add(source);
|
||||
|
||||
let notification = new MessageTray.Notification(source,
|
||||
_('Extension Updates Available'),
|
||||
_('Extension updates are ready to be installed.'));
|
||||
const notification = new MessageTray.Notification({
|
||||
source,
|
||||
title: _('Extension Updates Available'),
|
||||
body: _('Extension updates are ready to be installed.'),
|
||||
});
|
||||
notification.connect('activated',
|
||||
() => source.open());
|
||||
source.addNotification(notification);
|
||||
|
Reference in New Issue
Block a user