kivy: do not display 'signing' message if user cancels send_tx

This commit is contained in:
ThomasV 2017-10-22 15:50:32 +02:00
parent 7cf075c754
commit 6921e9fece
1 changed files with 2 additions and 0 deletions

View File

@ -296,6 +296,8 @@ class SendScreen(CScreen):
self.app.protected('\n'.join(msg), self.send_tx, (tx, message))
def send_tx(self, tx, message, password):
if self.app.wallet.has_password() and password is None:
return
def on_success(tx):
if tx.is_complete():
self.app.broadcast(tx, self.payment_request)