commit 7a060e86b277b88f23c9050866a65ce955c862d3
parent a6f28f5d1221f216e7e6423304838cdfedecf659
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 17 Oct 2015 12:46:05 +0200
minor fix FX plugin
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gui/qt/main_window.py b/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")
diff --git a/plugins/exchange_rate.py b/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():