diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-14 20:30:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-16 07:58:20 -0700 |
commit | 274dbc2ebf6ddf28370214dd4a551da602efc1d3 (patch) | |
tree | 75595c49e1009a1896485de510c97a6b8a1f84cf /mobile-widgets/qml/DownloadFromDiveComputer.qml | |
parent | ae42b7ceb094984fb6c94a65cbc8e0cf715cd06e (diff) | |
download | subsurface-274dbc2ebf6ddf28370214dd4a551da602efc1d3.tar.gz |
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 <dirk@hohndel.org>
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 { |