commit 323188b9631affec42088023a3c5b95fbda0f59e
parent 16ed48d52df28764fa52af2da53d8f67e9a13138
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 31 Aug 2016 15:15:55 +0200
devmgr: if only one device is plugged, use it
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/plugins.py b/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: