diff options
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 84467858e..74730d2f5 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -83,14 +83,9 @@ Kirigami.Page { onCurrentTextChanged: { manager.DC_vendor = currentText comboProduct.model = manager.getProductListFromVendor(currentText) - if (currentIndex == manager.getDetectedVendorIndex()) + // try to be clever if there is just one BT/BLE dive computer paired + if (currentIndex === manager.getDetectedVendorIndex()) comboProduct.currentIndex = manager.getDetectedProductIndex(currentText) - if (currentText === "Atomic Aquatics") { - comboConnection.model = [ qsTr("USB device") ] - comboConnection.currentIndex = 0 - } else { - comboConnection.model = connectionListModel - } } } Controls.Label { |