mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
Don't show ()s when showing just the fiat currency i.e don't do (10.00 EUR), do 10.00 EUR
This commit is contained in:
parent
4b5935f117
commit
f2b8837fbc
1 changed files with 3 additions and 1 deletions
|
@ -178,6 +178,8 @@ class MiniWindow(QDialog):
|
||||||
def set_balances(self, btc_balance):
|
def set_balances(self, btc_balance):
|
||||||
self.btc_balance = btc_balance
|
self.btc_balance = btc_balance
|
||||||
quote_text = self.create_quote_text(btc_balance)
|
quote_text = self.create_quote_text(btc_balance)
|
||||||
|
if quote_text:
|
||||||
|
quote_text = "(%s)" % quote_text
|
||||||
btc_balance = "%.2f" % (btc_balance / bitcoin(1))
|
btc_balance = "%.2f" % (btc_balance / bitcoin(1))
|
||||||
self.balance_label.set_balance_text(btc_balance, quote_text)
|
self.balance_label.set_balance_text(btc_balance, quote_text)
|
||||||
main_account_info = \
|
main_account_info = \
|
||||||
|
@ -205,7 +207,7 @@ class MiniWindow(QDialog):
|
||||||
if quote_balance is None:
|
if quote_balance is None:
|
||||||
quote_text = ""
|
quote_text = ""
|
||||||
else:
|
else:
|
||||||
quote_text = "(%.2f %s)" % ((quote_balance / bitcoin(1)),
|
quote_text = "%.2f %s" % ((quote_balance / bitcoin(1)),
|
||||||
quote_currency)
|
quote_currency)
|
||||||
return quote_text
|
return quote_text
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue