summaryrefslogtreecommitdiffstats
path: root/startupscreen/UsbButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'startupscreen/UsbButton.qml')
-rw-r--r--startupscreen/UsbButton.qml11
1 files changed, 3 insertions, 8 deletions
diff --git a/startupscreen/UsbButton.qml b/startupscreen/UsbButton.qml
index 355ab0c..315f9c8 100644
--- a/startupscreen/UsbButton.qml
+++ b/startupscreen/UsbButton.qml
@@ -70,14 +70,9 @@ Item {
// changing button state
MouseArea {
anchors.fill: parent
-
- onPressed: {
- root.scale = 0.9
- }
- onReleased: {
- root.scale = 1.0
- if (available) root.pressed()
- }
+ onPressed: root.scale = 0.9
+ onReleased: root.scale = 1.0
+ onClicked: if (available) root.pressed()
}
// button icon