aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-12-20 19:28:17 +0000
committerxiphon <xiphon@protonmail.com>2019-12-20 19:28:17 +0000
commitc6c094bbd5c13c351ca2ef092612cc2def95a804 (patch)
treeb213c3aa75cb5cdab14c01fae57e0dd0ec3abf7f
parent3e07ecabf9f3f9ccdddb8dc5b25b1afaedf7102e (diff)
downloadmonzero-gui-c6c094bbd5c13c351ca2ef092612cc2def95a804.tar.gz
monzero-gui-c6c094bbd5c13c351ca2ef092612cc2def95a804.tar.xz
monzero-gui-c6c094bbd5c13c351ca2ef092612cc2def95a804.zip
SettingsWallet: cleanup on wallet close
-rw-r--r--main.qml3
-rw-r--r--pages/settings/SettingsWallet.qml7
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 {