wizard hww: move devmgr.scan_devices() away from GUI thread

This commit is contained in:
SomberNight 2020-04-08 18:54:11 +02:00
parent 7a4acb05f2
commit 7c830cb221
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -280,7 +280,8 @@ class BaseWizard(Logger):
# scan devices # scan devices
try: try:
scanned_devices = devmgr.scan_devices() scanned_devices = self.run_task_without_blocking_gui(task=devmgr.scan_devices,
msg=_("Scanning devices..."))
except BaseException as e: except BaseException as e:
self.logger.info('error scanning devices: {}'.format(repr(e))) self.logger.info('error scanning devices: {}'.format(repr(e)))
debug_msg = ' {}:\n {}'.format(_('Error scanning devices'), e) debug_msg = ' {}:\n {}'.format(_('Error scanning devices'), e)