Make bluetooth enable/disable message for iOS containing the app restart information
This commit is contained in:
parent
ca2c36420d
commit
94439df25d
@ -43,13 +43,26 @@ Page {
|
|||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: {
|
text: {
|
||||||
if (Engine.bluetoothDiscovery.bluetoothAvailable && Engine.bluetoothDiscovery.bluetoothEnabled) {
|
|
||||||
return qsTr("Searching for %1 boxes via Bluetooth LE.").arg(app.systemName)
|
if (Qt.platform.os === "ios") {
|
||||||
} if (Engine.bluetoothDiscovery.bluetoothAvailable && !Engine.bluetoothDiscovery.bluetoothEnabled) {
|
if (Engine.bluetoothDiscovery.bluetoothAvailable && Engine.bluetoothDiscovery.bluetoothEnabled) {
|
||||||
return qsTr("Uh oh! Bluetooth is not enabled. Please enable the Bluetooth on this device and restart the application.")
|
return qsTr("Searching for %1 boxes via Bluetooth LE.").arg(app.systemName)
|
||||||
|
} if (Engine.bluetoothDiscovery.bluetoothAvailable && !Engine.bluetoothDiscovery.bluetoothEnabled) {
|
||||||
|
return qsTr("Uh oh! Bluetooth is not enabled. Please enable the Bluetooth on this device and restart the application.")
|
||||||
|
} else {
|
||||||
|
return qsTr("Uh oh! Bluetooth is not available. Please make sure Bluetooth is enabled on this device and restart the application.")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return qsTr("Uh oh! Bluetooth is not available. Please make sure Bluetooth is enabled on this device and restart the application.")
|
if (Engine.bluetoothDiscovery.bluetoothAvailable && Engine.bluetoothDiscovery.bluetoothEnabled) {
|
||||||
|
return qsTr("Searching for %1 boxes via Bluetooth LE.").arg(app.systemName)
|
||||||
|
} if (Engine.bluetoothDiscovery.bluetoothAvailable && !Engine.bluetoothDiscovery.bluetoothEnabled) {
|
||||||
|
return qsTr("Uh oh! Bluetooth is not enabled. Please enable the Bluetooth on this device.")
|
||||||
|
} else {
|
||||||
|
return qsTr("Uh oh! Bluetooth is not available. Please make sure Bluetooth is enabled on this device.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|||||||
Reference in New Issue
Block a user