diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-11 12:34:56 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-11 15:28:10 -0800 |
commit | cd7d6ae6e51a8422a141fc389b2eca232b7e93c5 (patch) | |
tree | 055252befcf672c1a1355329bc5e981f6b7ad988 /qt-mobile/qml/main.qml | |
parent | a29e74e2e949696c4ffdefeedad22ae1795f024c (diff) | |
download | subsurface-cd7d6ae6e51a8422a141fc389b2eca232b7e93c5.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r-- | qt-mobile/qml/main.qml | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -70,6 +70,15 @@ ApplicationWindow { } MenuItem { + text: "Run location service" + checkable: true + checked: manager.locationServiceEnabled + onToggled: { + manager.setLocationServiceEnabled(checked); + } + } + + MenuItem { text: "View Log" onTriggered: { stackView.push(logWindow) |