Notification: add enable/disable toggle

This commit is contained in:
Ly-sec
2025-11-06 17:30:16 +01:00
parent 7211868c27
commit ceb2dea2a9
12 changed files with 81 additions and 6 deletions
@@ -32,6 +32,13 @@ ColumnLayout {
description: I18n.tr("settings.notifications.settings.section.description")
}
NToggle {
label: I18n.tr("settings.notifications.settings.enabled.label")
description: I18n.tr("settings.notifications.settings.enabled.description")
checked: Settings.data.notifications.enabled !== false
onToggled: checked => Settings.data.notifications.enabled = checked
}
NToggle {
label: I18n.tr("settings.notifications.settings.do-not-disturb.label")
description: I18n.tr("settings.notifications.settings.do-not-disturb.description")