minor fix FX plugin

This commit is contained in:
ThomasV 2015-10-17 12:46:05 +02:00
parent a6f28f5d12
commit 7a060e86b2
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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():