1
0

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

This commit is contained in:
ThomasV
2020-12-10 17:21:41 +01:00
parent 567130f4a3
commit 8872e43f27

View File

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