mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: remove the Paired Bluetooth Devices virtual vendor
We now actually handle connections in a sane manner and don't need that workaround anymore. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cec3c256e7
commit
025efc12d4
3 changed files with 10 additions and 85 deletions
|
@ -157,20 +157,10 @@ Kirigami.Page {
|
|||
}
|
||||
onClicked: {
|
||||
text = qsTr("Retry")
|
||||
if (downloadThread.deviceData.bluetoothMode) {
|
||||
var addr = downloadThread.data().getDetectedDeviceAddress(comboVendor.currentText,
|
||||
comboProduct.currentText)
|
||||
if (addr !== "")
|
||||
downloadThread.deviceData.devName = addr
|
||||
var vendor = downloadThread.deviceData.getDeviceDescriptorVendor(comboVendor.currentText,
|
||||
comboProduct.currentText)
|
||||
downloadThread.deviceData.vendor = vendor;
|
||||
|
||||
var product = downloadThread.deviceData.getDeviceDescriptorProduct(comboVendor.currentText,
|
||||
comboProduct.currentText)
|
||||
downloadThread.deviceData.product = product;
|
||||
}
|
||||
manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.devName)
|
||||
// strip any BT Name from the address
|
||||
var devName = downloadThread.deviceData.devName
|
||||
downloadThread.deviceData.devName = devName.replace(/ (.*)$/, "")
|
||||
manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.product + " on "+ downloadThread.deviceData.devName)
|
||||
progressBar.visible = true
|
||||
downloadThread.start()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue