summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/NotifsConfig.qml1
-rw-r--r--modules/notifications/Notification.qml2
2 files changed, 2 insertions, 1 deletions
diff --git a/config/NotifsConfig.qml b/config/NotifsConfig.qml
index a899cf3..10d0a4f 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 11acf1c..cb067f9 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;