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":
|
elif out == "receive":
|
||||||
global receive_addr
|
global receive_addr
|
||||||
receive_addr = select_from_addresses()
|
receive_addr = select_from_addresses()
|
||||||
amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal")
|
if receive_addr:
|
||||||
if amount:
|
amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal")
|
||||||
receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount)
|
if amount:
|
||||||
|
receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount)
|
||||||
|
|
||||||
if not receive_addr:
|
if not receive_addr:
|
||||||
out = None
|
out = None
|
||||||
|
|
Loading…
Reference in New Issue