clear payment fields after transfer

This commit is contained in:
Jaquee 2017-02-04 14:44:30 +01:00
parent 756a821f41
commit 02ab113762
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39
2 changed files with 11 additions and 0 deletions

View File

@ -626,6 +626,10 @@ ApplicationWindow {
for (var i = 0; i < txid.length; ++i) for (var i = 0; i < txid.length; ++i)
currentWallet.setUserNote(txid[i], transactionDescription); currentWallet.setUserNote(txid[i], transactionDescription);
} }
// Clear tx fields
middlePanel.transferView.clearFields()
} }
informationPopup.onCloseCallback = null informationPopup.onCloseCallback = null
informationPopup.open() informationPopup.open()

View File

@ -86,6 +86,13 @@ Rectangle {
cameraUi.qrcode_decoded.disconnect(updateFromQrCode) cameraUi.qrcode_decoded.disconnect(updateFromQrCode)
} }
function clearFields() {
addressLine.text = ""
paymentIdLine.text = ""
amountLine.text = ""
descriptionLine.text = ""
}
// Information dialog // Information dialog
StandardDialog { StandardDialog {
// dynamically change onclose handler // dynamically change onclose handler