From d28100016bccfffb7be90018b611b22db005fde5 Mon Sep 17 00:00:00 2001 From: Damocles Date: Mon, 13 Apr 2026 16:00:08 +0200 Subject: [PATCH] fix persisted notification dismiss: unique IDs to avoid D-Bus collision --- modules/NotifService.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/NotifService.qml b/modules/NotifService.qml index 62f197c..99c9b07 100644 --- a/modules/NotifService.qml +++ b/modules/NotifService.qml @@ -142,7 +142,10 @@ QtObject { onLoaded: { try { const data = JSON.parse(text()); - for (const n of data) { + for (let i = 0; i < data.length; i++) { + const n = data[i]; + // Prefix persisted IDs to avoid collision with live D-Bus IDs + n.id = "p_" + (n.id ?? i) + "_" + n.time; n.popup = false; n.closed = false; n.notification = null;