mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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
1 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue