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
@@ -8,9 +8,9 @@ import qs.Widgets
NIconButtonHot {
property ShellScreen screen
icon: Settings.data.notifications.doNotDisturb ? "bell-off" : "bell"
hot: Settings.data.notifications.doNotDisturb
icon: NotificationService.doNotDisturb ? "bell-off" : "bell"
hot: NotificationService.doNotDisturb
tooltipText: I18n.tr("quickSettings.notifications.tooltip.action")
onClicked: PanelService.getPanel("notificationHistoryPanel", screen)?.toggle(this)
onRightClicked: Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
onRightClicked: NotificationService.doNotDisturb = !NotificationService.doNotDisturb
}