1
0

wizard/hw: show transport type when listing HWDs

This commit is contained in:
SomberNight
2018-11-16 19:03:25 +01:00
parent eba97f74b4
commit 32af83b7ae
5 changed files with 28 additions and 8 deletions

View File

@@ -283,8 +283,7 @@ 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}]"
# TODO maybe expose info.device.path (mainly for transport type)
descr = f"{label} [{name}, {state}, {info.device.transport_ui_string}]"
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))