Notifications: Fixed Toast when toggling DND

This commit is contained in:
ItsLemmy
2025-11-10 10:03:12 -05:00
parent bd63fe1c8c
commit 141f971a1d
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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()
}
+1
View File
@@ -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 {