Browse Source

Clear single send form after successful send

master
Kristaps Kaupe 5 years ago
parent
commit
79493749d9
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      scripts/joinmarket-qt.py

2
scripts/joinmarket-qt.py

@ -694,6 +694,7 @@ class SpendTab(QWidget):
return False return False
def infoDirectSend(self, msg): def infoDirectSend(self, msg):
self.clearFields(None)
JMQtMessageBox(self, msg, title="Success") JMQtMessageBox(self, msg, title="Success")
def errorDirectSend(self, msg): def errorDirectSend(self, msg):
@ -961,6 +962,7 @@ class SpendTab(QWidget):
mainWindow.statusBar().showMessage( mainWindow.statusBar().showMessage(
"Transaction seen on network: " + self.taker.txid) "Transaction seen on network: " + self.taker.txid)
if self.spendstate.typestate == 'single': if self.spendstate.typestate == 'single':
self.clearFields(None)
JMQtMessageBox(self, "Transaction broadcast OK. You can safely \n" JMQtMessageBox(self, "Transaction broadcast OK. You can safely \n"
"shut down if you don't want to wait.", "shut down if you don't want to wait.",
title="Success") title="Success")

Loading…
Cancel
Save