QML UI: use the BT address of the first dive computer found
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
be271e7d48
commit
782caf5fa6
@ -83,7 +83,12 @@ Kirigami.Page {
|
||||
text: qsTr("Download")
|
||||
onClicked: {
|
||||
text: qsTr("Retry")
|
||||
manager.appendTextToLog("DCDownloadThread started")
|
||||
if (downloadThread.deviceData.bluetoothMode) {
|
||||
var addr = manager.getBtAddress()
|
||||
if (addr !== "")
|
||||
downloadThread.deviceData.devName = addr
|
||||
}
|
||||
manager.appendTextToLog("DCDownloadThread started from " + downloadThread.deviceData.devName)
|
||||
downloadThread.start()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user