mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-07 12:25:15 +00:00
Notifications: Fixed Toast when toggling DND
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user