fix: do not ask amount if the action is cancelled
This commit is contained in:
parent
973e5af925
commit
c2a1015aba
|
@ -606,9 +606,10 @@ def main_loop():
|
|||
elif out == "receive":
|
||||
global receive_addr
|
||||
receive_addr = select_from_addresses()
|
||||
amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal")
|
||||
if amount:
|
||||
receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount)
|
||||
if receive_addr:
|
||||
amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal")
|
||||
if amount:
|
||||
receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount)
|
||||
|
||||
if not receive_addr:
|
||||
out = None
|
||||
|
|
Loading…
Reference in New Issue