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
@ -39,7 +39,10 @@ class ShellInfo {
|
||||
let forFeedback = options.forFeedback;
|
||||
|
||||
if (!this._notification) {
|
||||
this._notification = new MessageTray.Notification(source, text, null);
|
||||
this._notification = new MessageTray.Notification({
|
||||
source,
|
||||
title: text,
|
||||
});
|
||||
this._notification.setTransient(true);
|
||||
this._notification.setForFeedback(forFeedback);
|
||||
this._notification.connect('destroy', () => delete this._notification);
|
||||
|
Reference in New Issue
Block a user