mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile UI: remove special case for Atomic Aquatics
This dive computer hasn't been supported on Android in quite a while. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ae42b7ceb0
commit
274dbc2ebf
1 changed files with 2 additions and 7 deletions
|
@ -83,14 +83,9 @@ Kirigami.Page {
|
||||||
onCurrentTextChanged: {
|
onCurrentTextChanged: {
|
||||||
manager.DC_vendor = currentText
|
manager.DC_vendor = currentText
|
||||||
comboProduct.model = manager.getProductListFromVendor(currentText)
|
comboProduct.model = manager.getProductListFromVendor(currentText)
|
||||||
if (currentIndex == manager.getDetectedVendorIndex())
|
// try to be clever if there is just one BT/BLE dive computer paired
|
||||||
|
if (currentIndex === manager.getDetectedVendorIndex())
|
||||||
comboProduct.currentIndex = manager.getDetectedProductIndex(currentText)
|
comboProduct.currentIndex = manager.getDetectedProductIndex(currentText)
|
||||||
if (currentText === "Atomic Aquatics") {
|
|
||||||
comboConnection.model = [ qsTr("USB device") ]
|
|
||||||
comboConnection.currentIndex = 0
|
|
||||||
} else {
|
|
||||||
comboConnection.model = connectionListModel
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
|
|
Loading…
Add table
Reference in a new issue