electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f2b8837fbcd3ee9672cb85322047d9675dff93dc
parent 4b5935f117737d18fd8a88b77b7945ba5070a0fa
Author: Amir Taaki <genjix@riseup.net>
Date:   Mon,  2 Jul 2012 20:48:21 +0200

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

Diffstat:
Mlib/gui_lite.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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