From 16ce222ad7c85b6e79f666e331ddc93fd3d00155 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 20 Sep 2025 21:25:22 +1000 Subject: sidebar/notifs: fix minor bugs Image/app icon/urgency/time not updating until corresponding notif is fully destroyed Weird array mutation shenanigans --- services/Notifs.qml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'services') diff --git a/services/Notifs.qml b/services/Notifs.qml index 1de3805..3a81c5f 100644 --- a/services/Notifs.qml +++ b/services/Notifs.qml @@ -274,18 +274,14 @@ Singleton { function unlock(item: Item): void { locks.delete(item); - - if (closed && locks.size === 0 && root.list.includes(this)) { - root.list.splice(root.list.indexOf(this), 1); - notification?.dismiss(); - destroy(); - } + if (closed) + close(); } function close(): void { closed = true; if (locks.size === 0 && root.list.includes(this)) { - root.list.splice(root.list.indexOf(this), 1); + root.list = root.list.filter(n => n !== this); notification?.dismiss(); destroy(); } -- cgit v1.2.3-freya