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 <charno@charno.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-03-16 09:28:41 -07:00
parent 71f573da2a
commit 2abfd16a10

View file

@ -158,8 +158,8 @@ void QMLManager::btRescan()
void QMLManager::rescanConnections()
{
connectionListModel.removeAllAddresses();
btRescan();
usbRescan();
btRescan();
#if defined(SERIAL_FTDI)
connectionListModel.addAddress("FTDI");
#endif