mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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") {
|
if (Qt.platform.os !== "ios") {
|
||||||
for (var i = 0; i < gpsActions.length; i++)
|
for (var i = 0; i < gpsActions.length; i++)
|
||||||
createActions.push(gpsActions[i])
|
createActions.push(gpsActions[i])
|
||||||
}
|
}
|
||||||
for (var i = 0; i < bottomActions.length; i++)
|
for (var i = 0; i < bottomActions.length; i++)
|
||||||
createActions.push(bottomActions[i])
|
createActions.push(bottomActions[i])
|
||||||
actions = createActions
|
actions = createActions
|
||||||
|
@ -294,7 +294,7 @@ Kirigami.ApplicationWindow {
|
||||||
//leftMargin: units.smallSpacing
|
//leftMargin: units.smallSpacing
|
||||||
verticalCenter: locationCheckbox.verticalCenter
|
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: {
|
onClicked: {
|
||||||
print("Click.")
|
print("Click.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue