Browse Source

minor fix FX plugin

283 2.5
ThomasV 9 years ago
parent
commit
7a060e86b2
  1. 2
      gui/qt/main_window.py
  2. 2
      plugins/exchange_rate.py

2
gui/qt/main_window.py

@ -538,7 +538,7 @@ class ElectrumWindow(QMainWindow, PrintError):
# append fiat balance and price from exchange rate plugin
rate = run_hook('get_fiat_status_text', c + u + x)
if rate:
text += "1 BTC~%s" % rate
text += rate
icon = QIcon(":icons/status_connected.png")
else:
text = _("Not connected")

2
plugins/exchange_rate.py

@ -425,7 +425,7 @@ class Plugin(BasePlugin, ThreadJob):
@hook
def get_fiat_status_text(self, btc_balance):
rate = self.exchange_rate()
return _(" (No FX rate available)") if rate is None else "%s %s" % (self.value_str(COIN, rate), self.ccy)
return _(" (No FX rate available)") if rate is None else "1 BTC~%s %s" % (self.value_str(COIN, rate), self.ccy)
def get_historical_rates(self):
if self.show_history():

Loading…
Cancel
Save