Browse Source

devmgr: if only one device is plugged, use it

283
ThomasV 8 years ago
parent
commit
323188b963
  1. 2
      lib/plugins.py

2
lib/plugins.py

@ -469,6 +469,8 @@ class DeviceMgr(ThreadJob, PrintError):
if not handler.yes_no_question(msg):
raise UserCancelled()
devices = None
if len(infos) == 1:
return infos[0]
# select device by label
for info in infos:
if info.label == keystore.label:

Loading…
Cancel
Save