electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3b445046440c9deeadc9bed016014b56bf476974
parent 54695964d30e8d426d873d53e47090325ad98949
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 29 Jan 2016 12:50:38 +0100

exchange rates: call on_quotes in set_currency

Diffstat:
Mplugins/exchange_rate/exchange_rate.py | 2+-
Mplugins/exchange_rate/kivy.py | 4++--
Mplugins/exchange_rate/qt.py | 1-
3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/plugins/exchange_rate/exchange_rate.py b/plugins/exchange_rate/exchange_rate.py @@ -306,6 +306,7 @@ class FxPlugin(BasePlugin, ThreadJob): self.ccy = ccy self.config.set_key('currency', ccy, True) self.get_historical_rates() # Because self.ccy changes + self.on_quotes() def set_exchange(self, name): class_ = self.exchanges.get(name) or self.exchanges.values()[0] @@ -319,7 +320,6 @@ class FxPlugin(BasePlugin, ThreadJob): # a quote refresh self.timeout = 0 self.get_historical_rates() - #self.on_fx_quotes() def on_quotes(self): pass diff --git a/plugins/exchange_rate/kivy.py b/plugins/exchange_rate/kivy.py @@ -27,11 +27,11 @@ class Plugin(FxPlugin): self.dispatcher = MyEventDispatcher() def on_quotes(self): - self.print_error("on_quotes") + self.print_error("on_quotes", self.ccy) self.dispatcher.dispatch('on_quotes') def on_history(self): - self.print_error("on_history") + self.print_error("on_history", self.ccy) self.dispatcher.dispatch('on_history') def on_close(self): diff --git a/plugins/exchange_rate/qt.py b/plugins/exchange_rate/qt.py @@ -86,7 +86,6 @@ class Plugin(FxPlugin): ccy = str(self.ccy_combo.currentText()) if ccy and ccy != self.ccy: self.set_currency(ccy) - self.app.emit(SIGNAL('new_fx_quotes')) self.hist_checkbox_update() def hist_checkbox_update(self):