Just use single clicks
This commit is contained in:
1 parent
80da45dd1c
commit
d771787e6b
3 files changed
+12
-5
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user