add help message for hrdware devices on windows

This commit is contained in:
ThomasV 2017-03-21 10:07:31 +01:00
parent c2142ebf26
commit 33a32be576
1 changed files with 5 additions and 3 deletions

View File

@ -190,9 +190,11 @@ class BaseWizard(object):
continue
devices += map(lambda x: (name, x), u)
if not devices:
msg = '\n'.join([
_('No hardware device detected.'),
_('To trigger a rescan, press \'next\'.'),
msg = ''.join([
_('No hardware device detected.') + '\n',
_('To trigger a rescan, press \'Next\'.') + '\n\n',
_('If your device is not detected on Windows, go to "Settings", "Devices", "Connected devices", and do "Remove device". Then, plug your device again.') + ' ',
_('On Linux, you might have to add a new permission to your udev rules.'),
])
self.confirm_dialog(title=title, message=msg, run_next= lambda x: self.choose_hw_device())
return