summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-26 11:36:43 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-26 13:08:37 -0800
commitff3b107a9de188fd58e010d6b86f30a786293ada (patch)
tree669162b18c8244240322dc412ff1ee2f5fb0aa80 /mobile-widgets/qml
parent702ec37145d04b2a81b27fec7bb2fa852899c9a0 (diff)
downloadsubsurface-ff3b107a9de188fd58e010d6b86f30a786293ada.tar.gz
mobile: close GPS menu drawer when selected
This is mainly a cosmetic improvement. The GPS menu stayed visible, when selecting most of the options. This looks weird, as the close of the menu is also an indication of the selected action carried out. So, just close it Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/main.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 386523f7a..9582731d1 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -203,6 +203,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
iconName: "icons/ic_cloud_upload.svg"
text: qsTr("Upload GPS data")
onTriggered: {
+ globalDrawer.close();
manager.sendGpsData();
}
}
@@ -211,6 +212,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
iconName: "icons/ic_cloud_download.svg"
text: qsTr("Download GPS data")
onTriggered: {
+ globalDrawer.close();
manager.downloadGpsData();
}
}
@@ -230,6 +232,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
iconName: "icons/ic_clear.svg"
text: qsTr("Clear GPS cache")
onTriggered: {
+ globalDrawer.close();
manager.clearGpsData();
}
}
@@ -238,6 +241,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
iconName: locationServiceEnabled ? "icons/ic_location_off.svg" : "icons/ic_place.svg"
text: locationServiceEnabled ? qsTr("Disable location service") : qsTr("Run location service")
onTriggered: {
+ globalDrawer.close();
locationServiceEnabled = !locationServiceEnabled
}
}