diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-04-02 15:26:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 12:00:25 -0700 |
commit | 0673e53a68ef8c399304e1e542c0b9e79cf6d92b (patch) | |
tree | c6b5af153911f94a8c72277b3921f61012134b45 /mobile-widgets/qml | |
parent | ac9df93a1377c19471543fd632607cb7a419de2a (diff) | |
download | subsurface-0673e53a68ef8c399304e1e542c0b9e79cf6d92b.tar.gz |
mobile UI: only test for plugged in USB serial device on Android
This test makes no sense on other platforms (and the log file text is
frankly confusing when not running on Android).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 81d08140d..27e5c4d57 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -730,11 +730,14 @@ if you have network connectivity and want to sync your data to cloud storage."), manager.appendTextToLog("initialization completed - showing the dive list") showPage(diveList) // we want to make sure that gets on the stack diveList.diveListModel = diveModel - manager.appendTextToLog("if we got started by a plugged in device, switch to download page -- pluggedInDeviceName = " + pluggedInDeviceName) - if (pluggedInDeviceName !== "") - // if we were started with a dive computer plugged in, - // immediately switch to download page - showDownloadForPluggedInDevice() + + if (Qt.platform.os === "android") { + manager.appendTextToLog("if we got started by a plugged in device, switch to download page -- pluggedInDeviceName = " + pluggedInDeviceName) + if (pluggedInDeviceName !== "") + // if we were started with a dive computer plugged in, + // immediately switch to download page + showDownloadForPluggedInDevice() + } } } |