From a9b52f6752f3ba265ee396d7fe8e09609fb192fd Mon Sep 17 00:00:00 2001 From: plowsof Date: Thu, 1 Dec 2022 22:10:33 +0000 Subject: [PATCH] Sign/Verify: clear text fields on wallet close --- main.qml | 1 + pages/Advanced.qml | 6 ++++++ pages/Sign.qml | 10 ++++++++++ 3 files changed, 17 insertions(+) diff --git a/main.qml b/main.qml index 4be6be06..9937eb08 100644 --- a/main.qml +++ b/main.qml @@ -1118,6 +1118,7 @@ ApplicationWindow { middlePanel.transferView.clearFields(); middlePanel.receiveView.clearFields(); middlePanel.historyView.clearFields(); + middlePanel.advancedView.clearFields(); // disable timers userInActivityTimer.running = false; }); diff --git a/pages/Advanced.qml b/pages/Advanced.qml index 6aa8ac46..17904e3b 100644 --- a/pages/Advanced.qml +++ b/pages/Advanced.qml @@ -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 { @@ -146,4 +147,9 @@ ColumnLayout { } } } + + function clearFields() { + signView.clearFields(); + } + } diff --git a/pages/Sign.qml b/pages/Sign.qml index 74661391..bc037ac2 100644 --- a/pages/Sign.qml +++ b/pages/Sign.qml @@ -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"); }