minor fix FX plugin
This commit is contained in:
parent
a6f28f5d12
commit
7a060e86b2
|
@ -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")
|
||||
|
|
|
@ -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…
Reference in New Issue