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;