From 39c7089cbc954357deaec94f923d4c811c81dbb9 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 5 Sep 2025 21:04:02 -0400 Subject: [PATCH] Notification: fixed persistent DND toast. --- Modules/Bar/Widgets/NotificationHistory.qml | 2 +- Modules/Notification/NotificationHistoryPanel.qml | 2 +- Services/NotificationService.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Bar/Widgets/NotificationHistory.qml b/Modules/Bar/Widgets/NotificationHistory.qml index 274c61f..48a62fd 100644 --- a/Modules/Bar/Widgets/NotificationHistory.qml +++ b/Modules/Bar/Widgets/NotificationHistory.qml @@ -15,7 +15,7 @@ NIconButton { sizeRatio: 0.8 icon: Settings.data.notifications.doNotDisturb ? "notifications_off" : "notifications" - tooltipText: Settings.data.notifications.doNotDisturb ? "Notification history (Do Not Disturb ON)\nRight-click to toggle Do Not Disturb" : "Notification history\nRight-click to toggle Do Not Disturb" + tooltipText: Settings.data.notifications.doNotDisturb ? "Notification history.\nRight-click to disable 'Do Not Disturb'." : "Notification history.\nRight-click to enable 'Do Not Disturb'." colorBg: Color.mSurfaceVariant colorFg: Settings.data.notifications.doNotDisturb ? Color.mError : Color.mOnSurface colorBorder: Color.transparent diff --git a/Modules/Notification/NotificationHistoryPanel.qml b/Modules/Notification/NotificationHistoryPanel.qml index 97e0a9a..46a0ccb 100644 --- a/Modules/Notification/NotificationHistoryPanel.qml +++ b/Modules/Notification/NotificationHistoryPanel.qml @@ -46,7 +46,7 @@ NPanel { NIconButton { icon: Settings.data.notifications.doNotDisturb ? "notifications_off" : "notifications_active" - tooltipText: Settings.data.notifications.doNotDisturb ? "Do Not Disturb (ON)" : "Do Not Disturb (OFF)" + tooltipText: Settings.data.notifications.doNotDisturb ? "'Do Not Disturb' is enabled." : "'Do Not Disturb' is disabled." sizeRatio: 0.8 onClicked: Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb } diff --git a/Services/NotificationService.qml b/Services/NotificationService.qml index 1607be8..4ce9747 100644 --- a/Services/NotificationService.qml +++ b/Services/NotificationService.qml @@ -112,7 +112,7 @@ Singleton { function onDoNotDisturbChanged() { const label = Settings.data.notifications.doNotDisturb ? "'Do Not Disturb' enabled" : "'Do Not Disturb' disabled" const description = Settings.data.notifications.doNotDisturb ? "You'll find these notifications in your history." : "Showing all notifications." - ToastService.showNotice(label, description, "notice", false, 2000) + ToastService.showNotice(label, description) } }