notif groups: expand on right press instead of release

This commit is contained in:
end-4
2025-10-23 16:46:51 +02:00
parent 7b9454b101
commit 24ae5d327e
@@ -86,10 +86,13 @@ MouseArea { // Notification group area
automaticallyReset: false automaticallyReset: false
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onClicked: (mouse) => { onPressed: {
if (mouse.button === Qt.RightButton) if (mouse.button === Qt.RightButton)
root.toggleExpanded(); root.toggleExpanded();
else if (mouse.button === Qt.MiddleButton) }
onClicked: (mouse) => {
if (mouse.button === Qt.MiddleButton)
root.destroyWithAnimation(); root.destroyWithAnimation();
} }