Browse Source

Don't show ()s when showing just the fiat currency i.e don't do (10.00 EUR), do 10.00 EUR

283
Amir Taaki 13 years ago
parent
commit
f2b8837fbc
  1. 4
      lib/gui_lite.py

4
lib/gui_lite.py

@ -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…
Cancel
Save