mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
ac9df93a13
commit
0673e53a68
1 changed files with 8 additions and 5 deletions
|
@ -730,6 +730,8 @@ 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
|
||||
|
||||
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,
|
||||
|
@ -737,6 +739,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
showDownloadForPluggedInDevice()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
id: textBlock
|
||||
|
|
Loading…
Reference in a new issue