mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:13:24 +00:00
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
1 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue