diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-08-08 15:42:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:14:22 -0700 |
commit | 9d577e4b808d38e99439ea1aecfa96f2fedad390 (patch) | |
tree | 64cea9dc236d3afe5947026a5ab65a7505b1747f | |
parent | 7d1e90d6399bb5e99eb1decb9c902c7635798aa7 (diff) | |
download | subsurface-9d577e4b808d38e99439ea1aecfa96f2fedad390.tar.gz |
QML UI: disable connection selection for Atomics Aquatics
This is one of the dive computers that we simply connect to as USB device.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 6f7ac709e..9dc84fce2 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -84,6 +84,12 @@ Kirigami.Page { comboProduct.model = manager.getProductListFromVendor(currentText) 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 { text: qsTr(" Dive Computer:") } |