From 2abfd16a1015d7539345377c90ea357ef316bffc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 16 Mar 2020 09:28:41 -0700 Subject: [PATCH] mobile/DC-download: show USB devices before BT/BLE This makes sense because USB devices will only show up when connected, while BT/BLE will get listed once they are paired, even if not currently connected. So the higher likelihood of being the device a user is looking for is for any USB devices that show up, so those should go first. Suggested-by: Christof Arnosti Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 08b674a2a..939ec51bf 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -158,8 +158,8 @@ void QMLManager::btRescan() void QMLManager::rescanConnections() { connectionListModel.removeAllAddresses(); - btRescan(); usbRescan(); + btRescan(); #if defined(SERIAL_FTDI) connectionListModel.addAddress("FTDI"); #endif