forked from Public/monero-gui
Merge pull request #460
02ab113clear payment fields after transfer (Jaquee)756a821Wizard: clear restore from keys fields on wizard restart (Jaquee)
This commit is contained in:
4
main.qml
4
main.qml
@@ -628,6 +628,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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -45,7 +45,10 @@ Item {
|
|||||||
// reset account name field
|
// reset account name field
|
||||||
uiItem.accountNameText = defaultAccountName
|
uiItem.accountNameText = defaultAccountName
|
||||||
// Empty seedText
|
// Empty seedText
|
||||||
uiItem.wordsTextItem.memoText = "";
|
uiItem.wordsTextItem.memoText = ""
|
||||||
|
uiItem.recoverFromKeysAddress = ""
|
||||||
|
uiItem.recoverFromKeysSpendKey = ""
|
||||||
|
uiItem.recoverFromKeysViewKey = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPageOpened(settingsObject) {
|
function onPageOpened(settingsObject) {
|
||||||
|
|||||||
Reference in New Issue
Block a user