Notification: make doNotDisturb non persistent (fixes #665)

This commit is contained in:
Ly-sec
2025-11-10 17:12:51 +01:00
parent 97e24ac9b3
commit 5402ae32f5
8 changed files with 19 additions and 23 deletions
+3 -3
View File
@@ -62,13 +62,13 @@ Item {
})
}
function toggleDND() {
Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
NotificationService.doNotDisturb = !NotificationService.doNotDisturb
}
function enableDND() {
Settings.data.notifications.doNotDisturb = true
NotificationService.doNotDisturb = true
}
function disableDND() {
Settings.data.notifications.doNotDisturb = false
NotificationService.doNotDisturb = false
}
function clear() {
NotificationService.clearHistory()