From d6cc2918e06ed2c22f1f60cea8d7cb2211eb04e6 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 6 Jun 2022 20:39:16 -0400 Subject: [PATCH] widgets/notifications: Specify InvokeBehavior when invoking action --- .../qml/widgets/notifications/BaseNotificationItem.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml b/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml index f36a1fa3..07e966a8 100644 --- a/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml +++ b/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml @@ -149,15 +149,15 @@ Item { let action = () => { if (notificationsModelType === NotificationsModelType.WatchedNotificationsModel) { if (actionName === "") { - notificationsModel.invokeDefaultAction(model.notificationId); + notificationsModel.invokeDefaultAction(model.notificationId, NotificationManager.None); } else { - notificationsModel.invokeAction(notificationItem.model.notificationId, actionName); + notificationsModel.invokeAction(notificationItem.model.notificationId, actionName, NotificationManager.None); } } else if (notificationsModelType === NotificationsModelType.NotificationsModel) { if (actionName === "default") { - notificationsModel.invokeDefaultAction(notificationsModel.index(modelIndex, 0)); + notificationsModel.invokeDefaultAction(notificationsModel.index(modelIndex, 0), NotificationManager.Close); // notification closes } else { - notificationsModel.invokeAction(notificationsModel.index(modelIndex, 0), actionName); + notificationsModel.invokeAction(notificationsModel.index(modelIndex, 0), actionName, NotificationManager.Close); // notification closes } } expire();