diff options
Diffstat (limited to 'desktop/NotificationRow.qml')
| -rw-r--r-- | desktop/NotificationRow.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/NotificationRow.qml b/desktop/NotificationRow.qml index f95f3b4..7aff362 100644 --- a/desktop/NotificationRow.qml +++ b/desktop/NotificationRow.qml @@ -26,8 +26,13 @@ Item { MouseArea { anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton cursorShape: Qt.PointingHandCursor - onClicked: { + onClicked: mouse => { + if (mouse.button === Qt.RightButton) { + Notify.closeAll(); + return; + } if (!row.live) return; const acts = row.notification.actions || []; if (acts.length > 0 && !row.inert) Notify.actions(row.notification.id, acts); |
