Skip to content

Commit

Permalink
Merge pull request #4078
Browse files Browse the repository at this point in the history
a9b52f6 Sign/Verify: clear text fields on wallet close (plowsof)
  • Loading branch information
luigi1111 committed Dec 2, 2022
2 parents faa4473 + a9b52f6 commit 48393db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ ApplicationWindow {
middlePanel.transferView.clearFields();
middlePanel.receiveView.clearFields();
middlePanel.historyView.clearFields();
middlePanel.advancedView.clearFields();
// disable timers
userInActivityTimer.running = false;
});
Expand Down
6 changes: 6 additions & 0 deletions pages/Advanced.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -147,4 +148,9 @@ ColumnLayout {
}
}
}

function clearFields() {
signView.clearFields();
}

}
10 changes: 10 additions & 0 deletions pages/Sign.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 48393db

Please sign in to comment.