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:
Dirk Hohndel 2016-09-04 08:57:09 -07:00
parent 055276f1ba
commit 4938a7a10f

View file

@ -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.")