mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
7d1e90d639
commit
9d577e4b80
1 changed files with 6 additions and 0 deletions
|
@ -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:") }
|
||||
|
|
Loading…
Add table
Reference in a new issue