messageTray: Ignore showBanners policy for critical notifications
The critical hint is meant to be used for notifications that must not be missed - running out of battery being the prime example - so it makes sense to ignore the policy in that case and make sure to always show them to the user. This is consistent with blocking normal notifications while showing a fullscreen window, but letting critical ones through. https://bugzilla.gnome.org/show_bug.cgi?id=779974
This commit is contained in:
parent
e039871298
commit
60a2794c8b
@ -803,7 +803,7 @@ const Source = new Lang.Class({
|
||||
notification.acknowledged = false;
|
||||
this.pushNotification(notification);
|
||||
|
||||
if (this.policy.showBanners) {
|
||||
if (this.policy.showBanners || notification.urgency == Urgency.CRITICAL) {
|
||||
this.emit('notify', notification);
|
||||
} else {
|
||||
notification.playSound();
|
||||
|
Loading…
Reference in New Issue
Block a user