From f2b8837fbcd3ee9672cb85322047d9675dff93dc Mon Sep 17 00:00:00 2001 From: Amir Taaki Date: Mon, 2 Jul 2012 20:48:21 +0200 Subject: [PATCH] Don't show ()s when showing just the fiat currency i.e don't do (10.00 EUR), do 10.00 EUR --- lib/gui_lite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gui_lite.py b/lib/gui_lite.py index 0f3a7bd50..35d1f7a9f 100644 --- a/lib/gui_lite.py +++ b/lib/gui_lite.py @@ -178,6 +178,8 @@ class MiniWindow(QDialog): def set_balances(self, btc_balance): self.btc_balance = 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)) self.balance_label.set_balance_text(btc_balance, quote_text) main_account_info = \ @@ -205,7 +207,7 @@ class MiniWindow(QDialog): if quote_balance is None: quote_text = "" else: - quote_text = "(%.2f %s)" % ((quote_balance / bitcoin(1)), + quote_text = "%.2f %s" % ((quote_balance / bitcoin(1)), quote_currency) return quote_text