notifs: optional action on click

This commit is contained in:
2 * r + 2 * t 2025-05-10 23:36:07 +10:00
parent e7c2c2bc6d
commit 253fb68578
2 changed files with 2 additions and 1 deletions

View file

@ -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 {

View file

@ -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;