Merge pull request #4078

a9b52f6 Sign/Verify: clear text fields on wallet close (plowsof)
This commit is contained in:
luigi1111 2022-12-01 23:49:50 -06:00
commit 48393db2c7
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
3 changed files with 17 additions and 0 deletions

View File

@ -1119,6 +1119,7 @@ ApplicationWindow {
middlePanel.transferView.clearFields();
middlePanel.receiveView.clearFields();
middlePanel.historyView.clearFields();
middlePanel.advancedView.clearFields();
// disable timers
userInActivityTimer.running = false;
});

View File

@ -40,6 +40,7 @@ ColumnLayout {
spacing: 0
property int panelHeight: 900
property alias miningView: stateView.miningView
property alias signView: stateView.signView
property alias state: stateView.state
MoneroComponents.Navbar {
@ -147,4 +148,9 @@ ColumnLayout {
}
}
}
function clearFields() {
signView.clearFields();
}
}

View File

@ -421,6 +421,16 @@ Rectangle {
}
}
function clearFields() {
verifyMessageLine.text = ""
signMessageLine.text = ""
signSignatureLine.text = ""
verifyAddressLine.text = ""
verifySignatureLine.text = ""
signFileLine.text = ""
verifyFileLine.text = ""
}
function onPageCompleted() {
console.log("Sign/verify page loaded");
}