mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
messageTray: Do not show low priority notifications
Low priority notifications are meant for information that doesn't require immediate attention, so it makes sense to not show a banner for them; they'll still appear in the notification list in the calendar. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4265 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1893>
This commit is contained in:
parent
1f3fac047b
commit
0b8514dc7d
1 changed files with 3 additions and 0 deletions
|
|
@ -771,6 +771,9 @@ var Source = GObject.registerClass({
|
|||
notification.acknowledged = false;
|
||||
this.pushNotification(notification);
|
||||
|
||||
if (notification.urgency === Urgency.LOW)
|
||||
return;
|
||||
|
||||
if (this.policy.showBanners || notification.urgency == Urgency.CRITICAL)
|
||||
this.emit('notification-show', notification);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue