summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-09 14:41:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-16 07:58:20 -0700
commit822b05bec4c81a35720f3c1e504a2a36f861d13a (patch)
tree4f7c4735c796460b69ac303c38e7b91541cfb58c /mobile-widgets/qml/main.qml
parent5e89d81d9d6b8b1101b1482620b3f85968eb3b47 (diff)
downloadsubsurface-822b05bec4c81a35720f3c1e504a2a36f861d13a.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 06c6826ab..ea9321ab5 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -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)
}