SomberNight 7 years ago
parent
commit
d146c369bf
  1. 11
      lib/plugins.py

11
lib/plugins.py

@ -482,9 +482,14 @@ class DeviceMgr(ThreadJob, PrintError):
infos = self.unpaired_device_infos(handler, plugin, devices) infos = self.unpaired_device_infos(handler, plugin, devices)
if infos: if infos:
break break
msg = _('Please insert your {}. Verify the cable is ' msg = _('Please insert your {}').format(plugin.device)
'connected and that no other application is using it.\n\n' if keystore.label:
'Try to connect again?').format(plugin.device) msg += ' ({})'.format(keystore.label)
msg += '. {}\n\n{}'.format(
_('Verify the cable is connected and that '
'no other application is using it.'),
_('Try to connect again?')
)
if not handler.yes_no_question(msg): if not handler.yes_no_question(msg):
raise UserCancelled() raise UserCancelled()
devices = None devices = None

Loading…
Cancel
Save