qt hww show_settings_dialog: don't scan devices in GUI thread
Just makes sense in general. Also, previously, the GUI would freeze if right after startup the user clicked the hww status bar icon (especially with multiple hww connected).
This commit is contained in:
@@ -303,7 +303,7 @@ class ElectrumGui(Logger):
|
||||
return window
|
||||
|
||||
def _start_wizard_to_select_or_create_wallet(self, path) -> Optional[Abstract_Wallet]:
|
||||
wizard = InstallWizard(self.config, self.app, self.plugins)
|
||||
wizard = InstallWizard(self.config, self.app, self.plugins, gui_object=self)
|
||||
try:
|
||||
path, storage = wizard.select_storage(path, self.daemon.get_wallet)
|
||||
# storage is None if file does not exist
|
||||
@@ -342,7 +342,7 @@ class ElectrumGui(Logger):
|
||||
# Show network dialog if config does not exist
|
||||
if self.daemon.network:
|
||||
if self.config.get('auto_connect') is None:
|
||||
wizard = InstallWizard(self.config, self.app, self.plugins)
|
||||
wizard = InstallWizard(self.config, self.app, self.plugins, gui_object=self)
|
||||
wizard.init_network(self.daemon.network)
|
||||
wizard.terminate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user