mobile/download: only use device guess if no USB device plugged in

If we explicitly open the download page after the use plugged in a USB
device, don't try to use guesses from the BT/BLE pairings to populate
the device/connection dropdowns.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-03-09 14:41:55 -07:00
parent 5e89d81d9d
commit 822b05bec4
2 changed files with 17 additions and 6 deletions

View file

@ -819,6 +819,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
manager.appendTextToLog("show download page for " + vendor + " / " + product + " / " + connection)
downloadFromDc.dcImportModel.clearTable()
if (vendor !== undefined && product !== undefined && connection !== undefined) {
downloadFromDc.setupUSB = true
/* set up the correct values on the download page */
if (vendor !== -1)
downloadFromDc.vendor = vendor
@ -826,7 +827,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
downloadFromDc.product = product
if (connection !== -1)
downloadFromDc.connection = connection
} else {
downloadFromDc.setupUSB = false
}
showPage(downloadFromDc)
}