notifications: destroy wrapper object when quickshell's notif is destroyed (#1465)

This commit is contained in:
end-4
2025-07-18 16:09:35 +07:00
parent 40f2e0b6a7
commit bab166baea
3 changed files with 30 additions and 17 deletions
@@ -70,7 +70,7 @@ Item { // Notification item area
easing.bezierCurve: Appearance.animation.elementMove.bezierCurve
}
onFinished: () => {
Notifications.discardNotification(notificationObject.id);
Notifications.discardNotification(notificationObject.notificationId);
}
}
@@ -269,7 +269,7 @@ Item { // Notification item area
buttonText: modelData.text
urgency: notificationObject.urgency
onClicked: {
Notifications.attemptInvokeAction(notificationObject.id, modelData.identifier);
Notifications.attemptInvokeAction(notificationObject.notificationId, modelData.identifier);
}
}
}