From 141f971a1da28049d8cd3609e0b18459aa07aa79 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Mon, 10 Nov 2025 10:03:12 -0500 Subject: [PATCH] Notifications: Fixed Toast when toggling DND --- Modules/Toast/ToastScreen.qml | 4 ++-- Services/System/NotificationService.qml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Toast/ToastScreen.qml b/Modules/Toast/ToastScreen.qml index 0fd2d91c..e782a3ce 100644 --- a/Modules/Toast/ToastScreen.qml +++ b/Modules/Toast/ToastScreen.qml @@ -43,11 +43,11 @@ Item { function enqueueToast(toastData) { // Safe logging - fix the substring bug var descPreview = (toastData.description || "").substring(0, 100).replace(/\n/g, " ") - Logger.i("ToastScreen", "Queuing", toastData.type, ":", toastData.message, descPreview) + Logger.d("ToastScreen", "Queuing", toastData.type, ":", toastData.message, descPreview) // Bounded queue to prevent unbounded memory growth if (messageQueue.length >= maxQueueSize) { - Logger.i("ToastScreen", "Queue full, dropping oldest toast") + Logger.d("ToastScreen", "Queue full, dropping oldest toast") messageQueue.shift() } diff --git a/Services/System/NotificationService.qml b/Services/System/NotificationService.qml index 1442e5fb..dcc78f20 100644 --- a/Services/System/NotificationService.qml +++ b/Services/System/NotificationService.qml @@ -7,6 +7,7 @@ import Quickshell.Io import Quickshell.Services.Notifications import qs.Commons import qs.Services.Power +import qs.Services.UI import "../../Helpers/sha256.js" as Checksum Singleton {