load_wallet: don't hide and show gui unless we start the wizard
This commit is contained in:
parent
679f2fe2b1
commit
d895e5d132
|
@ -315,16 +315,16 @@ class ElectrumWindow(QMainWindow):
|
||||||
QMessageBox.warning(None, _('Warning'), str(e), _('OK'))
|
QMessageBox.warning(None, _('Warning'), str(e), _('OK'))
|
||||||
return
|
return
|
||||||
action = wallet.get_action()
|
action = wallet.get_action()
|
||||||
self.hide()
|
|
||||||
# run wizard
|
# run wizard
|
||||||
if action is not None:
|
if action is not None:
|
||||||
|
self.hide()
|
||||||
wallet = self.gui_object.run_wizard(storage, action)
|
wallet = self.gui_object.run_wizard(storage, action)
|
||||||
|
# keep current wallet
|
||||||
|
if not wallet:
|
||||||
|
self.show()
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
wallet.start_threads(self.network)
|
wallet.start_threads(self.network)
|
||||||
# keep current wallet
|
|
||||||
if not wallet:
|
|
||||||
self.show()
|
|
||||||
return
|
|
||||||
# close current wallet
|
# close current wallet
|
||||||
self.close_wallet()
|
self.close_wallet()
|
||||||
# load new wallet in gui
|
# load new wallet in gui
|
||||||
|
|
Loading…
Reference in New Issue