QML UI: correctly set up the divecomputer for download
If we find a paired BT divecomputer, this will populate vendor and product correctly for that device. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bde73f05d4
commit
8faf33eac6
@ -58,13 +58,18 @@ Kirigami.Page {
|
||||
Layout.fillWidth: true
|
||||
model: vendorList
|
||||
currentIndex: manager.getVendorIndex()
|
||||
onCurrentTextChanged: {
|
||||
comboProduct.model = manager.getDCListFromVendor(comboVendor.currentText)
|
||||
if (currentIndex == manager.getVendorIndex())
|
||||
comboProduct.currentIndex = manager.getProductIndex()
|
||||
}
|
||||
}
|
||||
Kirigami.Label { text: qsTr(" Dive Computer:") }
|
||||
ComboBox {
|
||||
id: comboProduct
|
||||
Layout.fillWidth: true
|
||||
model: manager.getDCListFromVendor(comboVendor.currentText)
|
||||
currentIndex: manager.getProductIndex()
|
||||
model: null
|
||||
currentIndex: -1
|
||||
}
|
||||
Kirigami.Label { text: qsTr("Bluetooth download:") }
|
||||
CheckBox {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user