summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-20 21:25:22 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-20 21:25:22 +1000
commit16ce222ad7c85b6e79f666e331ddc93fd3d00155 (patch)
treeb200a4742d4ad1d81a0d4504fdb2e7e851a96452 /services
parentsidebar/notifs: better count anim (diff)
downloadcaelestia-shell-16ce222ad7c85b6e79f666e331ddc93fd3d00155.tar.gz
caelestia-shell-16ce222ad7c85b6e79f666e331ddc93fd3d00155.tar.bz2
caelestia-shell-16ce222ad7c85b6e79f666e331ddc93fd3d00155.zip
sidebar/notifs: fix minor bugs
Image/app icon/urgency/time not updating until corresponding notif is fully destroyed Weird array mutation shenanigans
Diffstat (limited to 'services')
-rw-r--r--services/Notifs.qml10
1 files changed, 3 insertions, 7 deletions
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();
}