mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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: {
|
||||
manager.DC_vendor = 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)
|
||||
if (currentText === "Atomic Aquatics") {
|
||||
comboConnection.model = [ qsTr("USB device") ]
|
||||
comboConnection.currentIndex = 0
|
||||
} else {
|
||||
comboConnection.model = connectionListModel
|
||||
}
|
||||
}
|
||||
}
|
||||
Controls.Label {
|
||||
|
|
Loading…
Reference in a new issue