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
@@ -56,10 +56,10 @@ SmartPanel {
}
NIconButton {
icon: Settings.data.notifications.doNotDisturb ? "bell-off" : "bell"
tooltipText: Settings.data.notifications.doNotDisturb ? I18n.tr("tooltips.do-not-disturb-enabled") : I18n.tr("tooltips.do-not-disturb-disabled")
icon: NotificationService.doNotDisturb ? "bell-off" : "bell"
tooltipText: NotificationService.doNotDisturb ? I18n.tr("tooltips.do-not-disturb-enabled") : I18n.tr("tooltips.do-not-disturb-disabled")
baseSize: Style.baseWidgetSize * 0.8
onClicked: Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
onClicked: NotificationService.doNotDisturb = !NotificationService.doNotDisturb
}
NIconButton {