Just use single clicks

This commit is contained in:
David Heinemeier Hansson
2026-05-17 08:51:17 +02:00
parent 80da45dd1c
commit d771787e6b
3 changed files with 12 additions and 5 deletions
@@ -1079,10 +1079,17 @@ Item {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: function(mouse) {
if (mouse.button === Qt.RightButton) {
root.openBarSettings()
mouse.accepted = true
}
}
onDoubleClicked: function(mouse) {
if (mouse.button === Qt.RightButton) root.openBarSettings()
else root.toggleTransparency()
mouse.accepted = true
if (mouse.button !== Qt.RightButton) {
root.toggleTransparency()
mouse.accepted = true
}
}
}