1
0

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

fix #6812
This commit is contained in:
SomberNight
2020-12-08 08:47:13 +01:00
parent 78513affe5
commit 376ee395f8

View File

@@ -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