Notification: add DND option to widget and notification panel as requested in #212
This commit is contained in:
parent
60950fb461
commit
c8a056f332
4 changed files with 28 additions and 5 deletions
|
|
@ -29,8 +29,8 @@ Singleton {
|
|||
// Signal when notification is received
|
||||
onNotification: function (notification) {
|
||||
|
||||
// Check if notifications are suppressed
|
||||
if (Settings.data.notifications && Settings.data.notifications.suppressed) {
|
||||
// Check if do-not-disturb is enabled
|
||||
if (Settings.data.notifications && Settings.data.notifications.doNotDisturb) {
|
||||
// Still add to history but don't show notification
|
||||
root.addToHistory(notification)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue