summaryrefslogtreecommitdiff
path: root/services/Notifs.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-06 17:47:28 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-06 17:47:28 +1000
commitb5c65ee0bffe790f265e03565b29f1959ba6ea38 (patch)
tree7c52d3297aea4fde9538037ea821184763f0707f /services/Notifs.qml
parentbar: power button open session (diff)
downloadcaelestia-shell-b5c65ee0bffe790f265e03565b29f1959ba6ea38.tar.gz
caelestia-shell-b5c65ee0bffe790f265e03565b29f1959ba6ea38.tar.bz2
caelestia-shell-b5c65ee0bffe790f265e03565b29f1959ba6ea38.zip
notifs: lock notif object until anim finish
Also fix notif y position during remove anim
Diffstat (limited to 'services/Notifs.qml')
-rw-r--r--services/Notifs.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/Notifs.qml b/services/Notifs.qml
index b4ebc26..de53d89 100644
--- a/services/Notifs.qml
+++ b/services/Notifs.qml
@@ -78,10 +78,13 @@ Singleton {
}
readonly property Connections conn: Connections {
- target: notif.notification
+ target: notif.notification.Retainable
- function onClosed(): void {
+ function onDropped(): void {
root.list.splice(root.list.indexOf(notif), 1);
+ }
+
+ function onAboutToDestroy(): void {
notif.destroy();
}
}