From ff3b107a9de188fd58e010d6b86f30a786293ada Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 26 Dec 2017 11:36:43 +0100 Subject: 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 --- mobile-widgets/qml/main.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mobile-widgets/qml/main.qml') 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 } } -- cgit v1.2.3-70-g09d2