From 4938a7a10f2e86bfd3a439996dc491fb881a0a38 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 4 Sep 2016 08:57:09 -0700 Subject: 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 --- mobile-widgets/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index ca22c9409..ae476b315 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -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.") -- cgit v1.2.3-70-g09d2