messageTray: Default to generic policy
How and if notifications are shown is controlled by NotificationPolicy objects. But ever since 098bd45, only notification daemon sources or notifications associated with an app are hooked up to GSettings. The hardcoded default policy for built-in notifications (including those provided by extensions) arguably made sense back then, but now that the main setting has been rebranded as "Do Not Disturb" and is exposed prominently in the calendar drop-down, following GSettings is a better default. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3291 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1511>
This commit is contained in:
parent
4863c498b2
commit
595359afa5
@ -134,6 +134,7 @@ var FocusGrabber = class FocusGrabber {
|
||||
//
|
||||
// A notification without a policy object will inherit the default one.
|
||||
var NotificationPolicy = GObject.registerClass({
|
||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
||||
Properties: {
|
||||
'enable': GObject.ParamSpec.boolean(
|
||||
'enable', 'enable', 'enable', GObject.ParamFlags.READABLE, true),
|
||||
@ -718,7 +719,7 @@ var Source = GObject.registerClass({
|
||||
}
|
||||
|
||||
_createPolicy() {
|
||||
return new NotificationPolicy();
|
||||
return new NotificationGenericPolicy();
|
||||
}
|
||||
|
||||
get narrowestPrivacyScope() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user