kivy: fix load_wallet bug
This commit is contained in:
parent
af2bf1955a
commit
cae635c3e4
|
@ -418,7 +418,8 @@ class ElectrumWindow(App):
|
|||
if not path:
|
||||
return
|
||||
wallet = self.daemon.load_wallet(path)
|
||||
if wallet:
|
||||
if wallet != self.wallet:
|
||||
self.stop_wallet()
|
||||
self.load_wallet(wallet)
|
||||
self.on_resume()
|
||||
else:
|
||||
|
@ -535,9 +536,6 @@ class ElectrumWindow(App):
|
|||
|
||||
@profiler
|
||||
def load_wallet(self, wallet):
|
||||
print "load wallet", wallet.storage.path
|
||||
|
||||
self.stop_wallet()
|
||||
self.wallet = wallet
|
||||
self.current_account = self.wallet.storage.get('current_account', None)
|
||||
self.update_wallet()
|
||||
|
|
Loading…
Reference in New Issue