-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App setting to bypass do not disturb #148
base: master
Are you sure you want to change the base?
Conversation
I'm gonna bump this to OS 7 because I think we need more careful consideration around the design here than we have this month |
This does work after restarting the notifications server. |
@@ -8,6 +8,10 @@ | |||
<child name="applications" schema="io.elementary.notifications.applications" /> | |||
</schema> | |||
<schema id="io.elementary.notifications.applications"> | |||
<key type="b" name="bypass-do-not-disturb"> | |||
<default>false</default> | |||
<summary>Notify despite Do Not Disturb is enabled</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Notify despite Do Not Disturb setting being enabled"
"/io/elementary/notifications/applications/%s/".printf (notification.app_id) | ||
); | ||
|
||
if (!settings.get_boolean ("do-not-disturb") || app_settings.get_boolean ("bypass-do-not-disturb") || notification.priority == GLib.NotificationPriority.URGENT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor nitpicks re code but works as expected in conjunction with the other mentioned PR.
@marbetschar Are you able to address the review comments - this PR is nearly mergeable? |
Respects a user defined setting for a specific app to bypass do not disturb mode. Works together with the companion PR in the switchboard-plug-notifications repo: elementary/switchboard-plug-notifications#84