bugfix: remove race condition, respect duration settings

This commit is contained in:
FUFSoB
2025-09-23 11:34:21 +05:00
parent ea0350bcca
commit e35264708a
2 changed files with 6 additions and 9 deletions
+1 -6
View File
@@ -107,7 +107,7 @@ Variants {
// Connect to animation signal from service - UPDATED TO USE ID
Component.onCompleted: {
NotificationService.animateAndRemove.connect(function (notificationId, index) {
NotificationService.animateAndRemove.connect(function (notificationId) {
// Find the delegate by notification ID
var delegate = null
if (notificationStack && notificationStack.children && notificationStack.children.length > 0) {
@@ -120,11 +120,6 @@ Variants {
}
}
// Fallback to index if ID lookup failed
if (!delegate && notificationStack && notificationStack.children && notificationStack.children[index]) {
delegate = notificationStack.children[index]
}
if (delegate && delegate.animateOut) {
delegate.animateOut()
} else {