mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
iOS: Don't show "No GPS source available"
We don't support GPS on iOS right now, the message is confusing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
055276f1ba
commit
4938a7a10f
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ Kirigami.ApplicationWindow {
|
|||
if (Qt.platform.os !== "ios") {
|
||||
for (var i = 0; i < gpsActions.length; i++)
|
||||
createActions.push(gpsActions[i])
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < bottomActions.length; i++)
|
||||
createActions.push(bottomActions[i])
|
||||
actions = createActions
|
||||
|
@ -294,7 +294,7 @@ Kirigami.ApplicationWindow {
|
|||
//leftMargin: units.smallSpacing
|
||||
verticalCenter: locationCheckbox.verticalCenter
|
||||
}
|
||||
text: manager.locationServiceAvailable ? qsTr("Run location service") : qsTr("No GPS source available")
|
||||
text: Qt.platform.os == "ios" ? "" : manager.locationServiceAvailable ? qsTr("Run location service") : qsTr("No GPS source available")
|
||||
}
|
||||
onClicked: {
|
||||
print("Click.")
|
||||
|
|
Loading…
Reference in a new issue