kivy: fix a race at startup

on_history (fx) races with load_wallet
This commit is contained in:
SomberNight 2019-05-06 21:10:52 +02:00
parent 720519f610
commit fd09033890
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -180,7 +180,8 @@ class ElectrumWindow(App):
def on_history(self, d):
Logger.info("on_history")
self.wallet.clear_coin_price_cache()
if self.wallet:
self.wallet.clear_coin_price_cache()
self._trigger_update_history()
def on_fee_histogram(self, *args):