1
0

hww: show model name in device enum lists (e.g. "Trezor T")

This commit is contained in:
SomberNight
2020-04-08 17:25:18 +02:00
parent e1996bde01
commit db1ff4915f
5 changed files with 37 additions and 10 deletions

View File

@@ -336,7 +336,7 @@ class BaseWizard(Logger):
label = info.label or _("An unnamed {}").format(name)
try: transport_str = info.device.transport_ui_string[:20]
except: transport_str = 'unknown transport'
descr = f"{label} [{name}, {state}, {transport_str}]"
descr = f"{label} [{info.model_name or name}, {state}, {transport_str}]"
choices.append(((name, info), descr))
msg = _('Select a device') + ':'
self.choice_dialog(title=title, message=msg, choices=choices,