fix notification closing

This commit is contained in:
Marco Martin 2020-11-18 18:33:22 +01:00 committed by Bhushan Shah
parent 894d4a3b72
commit 3b3ff0a08e

View file

@ -183,7 +183,7 @@ Item {
}
onReleased: {
if (Math.abs(rect.x) > width / 2) { // dismiss notification when finished swipe
notifModel.close(notification.id);
notifModel.close(notificationItem.notification.notificationId);
} else {
slideAnim.restart();
}