Notification: add DND option to widget and notification panel as requested in #212

This commit is contained in:
Ly-sec 2025-09-05 22:42:40 +02:00
parent 60950fb461
commit c8a056f332
4 changed files with 28 additions and 5 deletions

View file

@ -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