From cd7d6ae6e51a8422a141fc389b2eca232b7e93c5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 11 Nov 2015 12:34:56 -0800 Subject: Location service: toggle the service from the main menu That way we don't track the user's location until explicitly asked to do so. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/main.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index b52fda057..2a4b8f432 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -69,6 +69,15 @@ ApplicationWindow { } } + MenuItem { + text: "Run location service" + checkable: true + checked: manager.locationServiceEnabled + onToggled: { + manager.setLocationServiceEnabled(checked); + } + } + MenuItem { text: "View Log" onTriggered: { -- cgit v1.2.3-70-g09d2