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
@ -2030,9 +2030,11 @@ class Indicator extends SystemIndicator {
|
||||
this._notification?.destroy();
|
||||
|
||||
const source = MessageTray.getSystemSource();
|
||||
this._notification = new MessageTray.Notification(source,
|
||||
_('Connection failed'),
|
||||
_('Activation of network connection failed'));
|
||||
this._notification = new MessageTray.Notification({
|
||||
source,
|
||||
title: _('Connection failed'),
|
||||
body: _('Activation of network connection failed'),
|
||||
});
|
||||
this._notification.iconName = 'network-error-symbolic';
|
||||
this._notification.setUrgency(MessageTray.Urgency.HIGH);
|
||||
this._notification.setTransient(true);
|
||||
|
Reference in New Issue
Block a user