Browse Source

wizard/hw: cap transport string

follow-up 32af83b7ae
3.3.3.1
SomberNight 6 years ago
parent
commit
74f6ac27af
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/base_wizard.py

4
electrum/base_wizard.py

@ -283,7 +283,9 @@ class BaseWizard(object):
for name, info in devices:
state = _("initialized") if info.initialized else _("wiped")
label = info.label or _("An unnamed {}").format(name)
descr = f"{label} [{name}, {state}, {info.device.transport_ui_string}]"
try: transport_str = info.device.transport_ui_string[:20]
except: transport_str = 'unknown transport'
descr = f"{label} [{name}, {state}, {transport_str}]"
choices.append(((name, info), descr))
msg = _('Select a device') + ':'
self.choice_dialog(title=title, message=msg, choices=choices, run_next= lambda *args: self.on_device(*args, purpose=purpose))

Loading…
Cancel
Save