From 9d577e4b808d38e99439ea1aecfa96f2fedad390 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Aug 2018 15:42:26 -0700 Subject: 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 --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 6 ++++++ 1 file changed, 6 insertions(+) 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:") } -- cgit v1.2.3-70-g09d2