From 434f548a8749a271efb705cf6e3a6d211be6e71d Mon Sep 17 00:00:00 2001 From: plowsof Date: Mon, 10 Apr 2023 23:37:29 +0100 Subject: [PATCH] Prove/Check: clear text fields on wallet close --- pages/Advanced.qml | 2 ++ pages/TxKey.qml | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/pages/Advanced.qml b/pages/Advanced.qml index 68896079..d9c868ae 100644 --- a/pages/Advanced.qml +++ b/pages/Advanced.qml @@ -41,6 +41,7 @@ ColumnLayout { property int panelHeight: 900 property alias miningView: stateView.miningView property alias signView: stateView.signView + property alias prooveView: stateView.prooveView property alias state: stateView.state MoneroComponents.Navbar { @@ -151,6 +152,7 @@ ColumnLayout { function clearFields() { signView.clearFields(); + prooveView.clearFields(); } } diff --git a/pages/TxKey.qml b/pages/TxKey.qml index 7443dff5..297716bc 100644 --- a/pages/TxKey.qml +++ b/pages/TxKey.qml @@ -259,6 +259,17 @@ Rectangle { } } + function clearFields() { + checkProofAddressLine.text = "" + checkProofMessageLine.text = "" + checkProofSignatureLine.text = "" + checkProofTxIdLine.text = "" + getProofAddressLine.text = "" + getProofMessageLine.text = "" + getProofTxIdLine.text = "" + getReserveProofAmtLine.text = "" + } + function onPageCompleted() { console.log("TxKey page loaded");