mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Show BT device names first
Show them left of address (so they are in the user's view) rather than on the right. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
127abec62c
commit
1c223b09c3
2 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ void BTDiscovery::btDeviceDiscoveredMain(const btPairedDevice &device)
|
|||
btVP.vendorIdx = vendorList.indexOf(vendor);
|
||||
btVP.productIdx = productList[vendor].indexOf(newDevice);
|
||||
btDCs << btVP;
|
||||
connectionListModel.addAddress(device.address + " (" + newDevice + ")");
|
||||
connectionListModel.addAddress(newDevice + " " + device.address);
|
||||
return;
|
||||
}
|
||||
connectionListModel.addAddress(device.address);
|
||||
|
|
|
@ -199,7 +199,7 @@ Kirigami.Page {
|
|||
text = qsTr("Retry")
|
||||
// strip any BT Name from the address
|
||||
var devName = downloadThread.deviceData.devName
|
||||
downloadThread.deviceData.devName = devName.replace(/ (.*)$/, "")
|
||||
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
Reference in a new issue