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>
This commit is contained in:
Dirk Hohndel 2018-08-08 15:42:26 -07:00
parent 7d1e90d639
commit 9d577e4b80

View file

@ -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:") }