mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: move location services to GPS menu
Move the location services switch to the GPS menu, indicate both with icon and text if the service is active or not. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
3b3f6b67f5
commit
d51fe03bd9
3 changed files with 10 additions and 35 deletions
|
@ -24,6 +24,7 @@ Kirigami.ApplicationWindow {
|
|||
property QtObject notification: null
|
||||
property bool showingDiveList: false
|
||||
property alias syncToCloud: manager.syncToCloud
|
||||
property alias locationServiceEnabled: manager.locationServiceEnabled
|
||||
property alias showPin: manager.showPin
|
||||
onNotificationTextChanged: {
|
||||
if (notificationText != "") {
|
||||
|
@ -229,6 +230,14 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
manager.clearGpsData();
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Action {
|
||||
iconName: locationServiceEnabled ? "icons/ic_location_off.svg" : "icons/ic_place.svg"
|
||||
text: locationServiceEnabled ? qsTr("Disable location service") : qsTr("Run location service")
|
||||
onTriggered: {
|
||||
locationServiceEnabled = !locationServiceEnabled
|
||||
}
|
||||
}
|
||||
},
|
||||
Kirigami.Action {
|
||||
iconName: "icons/ic_info_outline.svg"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue