hide/show main window when wizard is called

This commit is contained in:
ThomasV 2015-02-18 18:41:25 +01:00
parent be172e2a95
commit 4794ccfaf2
1 changed files with 2 additions and 0 deletions

View File

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