diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index a02210ec..76274e08 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -57,6 +57,11 @@ StyledRect { root.expanded = diffY > 0; } } + onClicked: { + const actions = root.modelData.actions; + if (actions.length === 1) + root.modelData.actions[0].invoke(); + } } Behavior on x { diff --git a/services/Notifs.qml b/services/Notifs.qml index 44db1c5f..4d1f9869 100644 --- a/services/Notifs.qml +++ b/services/Notifs.qml @@ -55,6 +55,7 @@ Singleton { readonly property string appIcon: notification.appIcon readonly property string appName: notification.appName readonly property string image: notification.image + readonly property list actions: notification.actions readonly property Timer timer: Timer { running: true