mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Sign/Verify: clear text fields on wallet close
This commit is contained in:
parent
aef4a982dc
commit
a9b52f6752
3 changed files with 17 additions and 0 deletions
1
main.qml
1
main.qml
|
@ -1118,6 +1118,7 @@ ApplicationWindow {
|
||||||
middlePanel.transferView.clearFields();
|
middlePanel.transferView.clearFields();
|
||||||
middlePanel.receiveView.clearFields();
|
middlePanel.receiveView.clearFields();
|
||||||
middlePanel.historyView.clearFields();
|
middlePanel.historyView.clearFields();
|
||||||
|
middlePanel.advancedView.clearFields();
|
||||||
// disable timers
|
// disable timers
|
||||||
userInActivityTimer.running = false;
|
userInActivityTimer.running = false;
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,6 +40,7 @@ ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
property int panelHeight: 900
|
property int panelHeight: 900
|
||||||
property alias miningView: stateView.miningView
|
property alias miningView: stateView.miningView
|
||||||
|
property alias signView: stateView.signView
|
||||||
property alias state: stateView.state
|
property alias state: stateView.state
|
||||||
|
|
||||||
MoneroComponents.Navbar {
|
MoneroComponents.Navbar {
|
||||||
|
@ -146,4 +147,9 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearFields() {
|
||||||
|
signView.clearFields();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,6 +421,16 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearFields() {
|
||||||
|
verifyMessageLine.text = ""
|
||||||
|
signMessageLine.text = ""
|
||||||
|
signSignatureLine.text = ""
|
||||||
|
verifyAddressLine.text = ""
|
||||||
|
verifySignatureLine.text = ""
|
||||||
|
signFileLine.text = ""
|
||||||
|
verifyFileLine.text = ""
|
||||||
|
}
|
||||||
|
|
||||||
function onPageCompleted() {
|
function onPageCompleted() {
|
||||||
console.log("Sign/verify page loaded");
|
console.log("Sign/verify page loaded");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue