electrum

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

commit 8e7c5a180fd9ad80a2d9af7bd79e7442f24a7d1f
parent b7cef8dd5842e28716ea99273d76af3f3200d3c9
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 10 Dec 2015 11:33:30 +0100

kivy: handle absence of fiat exchange rate

Diffstat:
Mgui/kivy/uix/ui_screens/amount.kv | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui/kivy/uix/ui_screens/amount.kv b/gui/kivy/uix/ui_screens/amount.kv @@ -18,7 +18,7 @@ Popup: id: a btc_text: (kb.amount + ' ' + app.base_unit) if kb.amount else '' fiat_text: (kb.fiat_amount + ' ' + app.fiat_unit) if kb.fiat_amount else '' - text: (self.fiat_text + ' / ' + self.btc_text if kb.is_fiat else self.btc_text + ' / ' + self.fiat_text) if self.btc_text else '' + text: ((self.fiat_text + ' / ' + self.btc_text if kb.is_fiat else self.btc_text + ' / ' + self.fiat_text) if app.fiat_unit else self.btc_text) if self.btc_text else '' size_hint: 1, 1 font_size: '22dp' Widget: @@ -70,7 +70,7 @@ Popup: id: button_fiat size_hint: 1, None height: '48dp' - text: app.fiat_unit if kb.is_fiat else app.base_unit + text: (app.fiat_unit if kb.is_fiat else app.base_unit) if app.fiat_unit else '' on_release: app.toggle_fiat(kb) Button: