From c6c094bbd5c13c351ca2ef092612cc2def95a804 Mon Sep 17 00:00:00 2001 From: xiphon Date: Fri, 20 Dec 2019 19:28:17 +0000 Subject: [PATCH] SettingsWallet: cleanup on wallet close --- main.qml | 3 +++ pages/settings/SettingsWallet.qml | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/main.qml b/main.qml index 997c3511..6a0376e2 100644 --- a/main.qml +++ b/main.qml @@ -1113,6 +1113,9 @@ ApplicationWindow { rootItem.state = "wizard" // reset balance clearMoneroCardLabelText(); + middlePanel.addressBookView.clearFields(); + middlePanel.transferView.clearFields(); + middlePanel.receiveView.clearFields(); // disable timers userInActivityTimer.running = false; simpleModeConnectionTimer.running = false; diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml index 92630818..9e08f29a 100644 --- a/pages/settings/SettingsWallet.qml +++ b/pages/settings/SettingsWallet.qml @@ -54,12 +54,7 @@ Rectangle { description: qsTr("Logs out of this wallet.") + translationManager.emptyString title: qsTr("Close this wallet") + translationManager.emptyString - onClicked: { - middlePanel.addressBookView.clearFields(); - middlePanel.transferView.clearFields(); - middlePanel.receiveView.clearFields(); - appWindow.showWizard(); - } + onClicked: appWindow.showWizard() } MoneroComponents.SettingsListItem {