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