minor fix FX plugin
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user