mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-02 03:06:26 +00:00
SettingsWallet: cleanup on wallet close
This commit is contained in:
parent
3e07ecabf9
commit
c6c094bbd5
2 changed files with 4 additions and 6 deletions
3
main.qml
3
main.qml
|
@ -1113,6 +1113,9 @@ ApplicationWindow {
|
||||||
rootItem.state = "wizard"
|
rootItem.state = "wizard"
|
||||||
// reset balance
|
// reset balance
|
||||||
clearMoneroCardLabelText();
|
clearMoneroCardLabelText();
|
||||||
|
middlePanel.addressBookView.clearFields();
|
||||||
|
middlePanel.transferView.clearFields();
|
||||||
|
middlePanel.receiveView.clearFields();
|
||||||
// disable timers
|
// disable timers
|
||||||
userInActivityTimer.running = false;
|
userInActivityTimer.running = false;
|
||||||
simpleModeConnectionTimer.running = false;
|
simpleModeConnectionTimer.running = false;
|
||||||
|
|
|
@ -54,12 +54,7 @@ Rectangle {
|
||||||
description: qsTr("Logs out of this wallet.") + translationManager.emptyString
|
description: qsTr("Logs out of this wallet.") + translationManager.emptyString
|
||||||
title: qsTr("Close this wallet") + translationManager.emptyString
|
title: qsTr("Close this wallet") + translationManager.emptyString
|
||||||
|
|
||||||
onClicked: {
|
onClicked: appWindow.showWizard()
|
||||||
middlePanel.addressBookView.clearFields();
|
|
||||||
middlePanel.transferView.clearFields();
|
|
||||||
middlePanel.receiveView.clearFields();
|
|
||||||
appWindow.showWizard();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.SettingsListItem {
|
MoneroComponents.SettingsListItem {
|
||||||
|
|
Loading…
Reference in a new issue