tRemove unwanted hook. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2a9bc559b2a30d7591f1012fe6d99c25206448b7 DIR parent 915ee94cddf1c2f3c5f35d923e766082ef75630a HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Sat, 5 Sep 2015 17:33:57 +0900 Remove unwanted hook. Diffstat: M plugins/exchange_rate.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py t@@ -284,10 +284,6 @@ class Plugin(BasePlugin, ThreadJob): quote_text = "%.2f %s" % (quote_balance, self.fiat_unit()) return quote_text - @hook - def load_wallet(self, wallet, window): - self.get_historical_rates() - def get_historical_rates(self): if self.config_history(): self.exchange.get_historical_rates(self.fiat_unit()) t@@ -357,6 +353,7 @@ class Plugin(BasePlugin, ThreadJob): return if ccy != self.fiat_unit(): self.config.set_key('currency', ccy, True) + self.get_historical_rates() hist_checkbox_update() for window in self.parent.windows: window.update_status()