forked from Public/monero-gui
Shutdown daemon and close wallet properly on app exit
This commit is contained in:
15
main.qml
15
main.qml
@@ -1053,12 +1053,13 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
onClosing: {
|
||||
// Close and save to disk on app close
|
||||
if (currentWallet != undefined) {
|
||||
walletManager.closeWallet(currentWallet);
|
||||
currentWallet = undefined
|
||||
}
|
||||
// Stop daemon
|
||||
daemonManager.stop();
|
||||
// Make sure wallet is closed before app exit (~Wallet() isn't always invoked)
|
||||
// Daemon shutdown is handled with signal/slot in main.cpp
|
||||
if (currentWallet != undefined) {
|
||||
walletManager.closeWallet(currentWallet);
|
||||
currentWallet = undefined
|
||||
}
|
||||
// Stop daemon
|
||||
daemonManager.stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user