Browse Source

hide/show main window when wizard is called

283
ThomasV 10 years ago
parent
commit
4794ccfaf2
  1. 2
      gui/qt/main_window.py

2
gui/qt/main_window.py

@ -340,12 +340,14 @@ class ElectrumWindow(QMainWindow):
QMessageBox.critical(None, "Error", _("File exists")) QMessageBox.critical(None, "Error", _("File exists"))
return return
self.hide()
if self.wallet: if self.wallet:
self.close_wallet() self.close_wallet()
wizard = installwizard.InstallWizard(self.config, self.network, storage) wizard = installwizard.InstallWizard(self.config, self.network, storage)
wallet = wizard.run('new') wallet = wizard.run('new')
if wallet: if wallet:
self.load_wallet(wallet) self.load_wallet(wallet)
self.show()

Loading…
Cancel
Save