1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-29 09:05:11 +01:00

SettingsWallet: cleanup on wallet close

This commit is contained in:
xiphon 2019-12-20 19:28:17 +00:00
parent 3e07ecabf9
commit c6c094bbd5
2 changed files with 4 additions and 6 deletions

View File

@ -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;

View File

@ -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 {