electrum

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

commit 376ee395f867466d207747f36c0064e069ea9d24
parent 78513affe536ba7d8150dc2ee044e3258097317f
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue,  8 Dec 2020 08:47:13 +0100

kivy: (fix) clicking "max" to send would raise for empty wallet

fix #6812

Diffstat:
Melectrum/gui/kivy/main_window.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py @@ -1110,7 +1110,8 @@ class ElectrumWindow(App, Logger): def cb(amount): if amount == '!': screen.is_max = True - screen.amount = self.get_max_amount() + ' ' + self.base_unit + max_amt = self.get_max_amount() + screen.amount = (max_amt + ' ' + self.base_unit) if max_amt else '' else: screen.amount = amount screen.is_max = False