diff --git a/config/NotifsConfig.qml b/config/NotifsConfig.qml index a899cf3a..10d0a4f1 100644 --- a/config/NotifsConfig.qml +++ b/config/NotifsConfig.qml @@ -8,6 +8,7 @@ Singleton { readonly property int defaultExpireTimeout: 3000 readonly property real clearThreshold: 0.3 readonly property int expandThreshold: 20 + readonly property bool actionOnClick: false readonly property Sizes sizes: Sizes {} component Sizes: QtObject { diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 11acf1c5..cb067f9d 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -59,7 +59,7 @@ StyledRect { } } onClicked: event => { - if (event.button !== Qt.LeftButton) + if (!NotifsConfig.actionOnClick || event.button !== Qt.LeftButton) return; const actions = root.modelData.actions;