Browse Source

cleanup, remove if statement (follow-up 13b05f64e6)

patch-4
ThomasV 4 years ago
parent
commit
8872e43f27
  1. 11
      electrum/gui/kivy/main_window.py

11
electrum/gui/kivy/main_window.py

@ -623,12 +623,11 @@ class ElectrumWindow(App, Logger):
return ''
def on_wizard_success(self, storage, db, password):
if storage:
self.password = password
wallet = Wallet(db, storage, config=self.electrum_config)
wallet.start_network(self.daemon.network)
self.daemon.add_wallet(wallet)
self.load_wallet(wallet)
self.password = password
wallet = Wallet(db, storage, config=self.electrum_config)
wallet.start_network(self.daemon.network)
self.daemon.add_wallet(wallet)
self.load_wallet(wallet)
def on_wizard_aborted(self):
# wizard did not return a wallet; and there is no wallet open atm

Loading…
Cancel
Save