mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
702ec37145
commit
ff3b107a9d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue