mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
minor fix FX plugin
This commit is contained in:
parent
a6f28f5d12
commit
7a060e86b2
2 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
# append fiat balance and price from exchange rate plugin
|
# append fiat balance and price from exchange rate plugin
|
||||||
rate = run_hook('get_fiat_status_text', c + u + x)
|
rate = run_hook('get_fiat_status_text', c + u + x)
|
||||||
if rate:
|
if rate:
|
||||||
text += "1 BTC~%s" % rate
|
text += rate
|
||||||
icon = QIcon(":icons/status_connected.png")
|
icon = QIcon(":icons/status_connected.png")
|
||||||
else:
|
else:
|
||||||
text = _("Not connected")
|
text = _("Not connected")
|
||||||
|
|
|
@ -425,7 +425,7 @@ class Plugin(BasePlugin, ThreadJob):
|
||||||
@hook
|
@hook
|
||||||
def get_fiat_status_text(self, btc_balance):
|
def get_fiat_status_text(self, btc_balance):
|
||||||
rate = self.exchange_rate()
|
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):
|
def get_historical_rates(self):
|
||||||
if self.show_history():
|
if self.show_history():
|
||||||
|
|
Loading…
Add table
Reference in a new issue