mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
kivy: fix amount edit
This commit is contained in:
parent
5bbffb0cbf
commit
525e08af54
1 changed files with 6 additions and 2 deletions
|
@ -443,9 +443,13 @@ class ElectrumWindow(App):
|
|||
def update_amount(self, amount, c):
|
||||
if c == '<':
|
||||
return amount[:-1]
|
||||
if c == '.' and amount == '':
|
||||
return '0.'
|
||||
if c == '0' and amount == '0':
|
||||
return '0'
|
||||
try:
|
||||
s = amount + c
|
||||
amount = s if Decimal(s)!=0 else ''
|
||||
Decimal(amount+c)
|
||||
amount += c
|
||||
except:
|
||||
pass
|
||||
return amount
|
||||
|
|
Loading…
Add table
Reference in a new issue