diff options
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index b0eda16f3..8ef4520a2 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -481,9 +481,13 @@ Kirigami.Page { comboVendor.currentIndex = comboProduct.currentIndex = comboConnection.currentIndex = -1 dc1.enabled = dc2.enabled = dc3.enabled = dc4.enabled = true if (visible) { + // we started the BT/BLE scan when Subsurface-mobile started, let's see if + // that found something comboVendor.currentIndex = manager.getDetectedVendorIndex() comboProduct.currentIndex = manager.getDetectedProductIndex(comboVendor.currentText) comboConnection.currentIndex = manager.getMatchingAddress(comboVendor.currentText, comboProduct.currentText) + // also check if there are USB devices (this only has an effect on Android) + manager.usbRescan() } } } |