commit 7c830cb22181e26c77d7819175e40d0c756618ce
parent 7a4acb05f2c9e21a738cffde712b5d8cd6eca783
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 8 Apr 2020 18:54:11 +0200
wizard hww: move devmgr.scan_devices() away from GUI thread
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/base_wizard.py b/electrum/base_wizard.py
@@ -280,7 +280,8 @@ class BaseWizard(Logger):
# scan devices
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:
self.logger.info('error scanning devices: {}'.format(repr(e)))
debug_msg = ' {}:\n {}'.format(_('Error scanning devices'), e)