From 274dbc2ebf6ddf28370214dd4a551da602efc1d3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 14 Mar 2020 20:30:56 -0700 Subject: mobile UI: remove special case for Atomic Aquatics This dive computer hasn't been supported on Android in quite a while. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml') 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 { -- cgit v1.2.3-70-g09d2