mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
main: fix local node status check on closing uninitialized wallet
This commit is contained in:
parent
ce6cc47afe
commit
c439d6814b
1 changed files with 19 additions and 7 deletions
18
main.qml
18
main.qml
|
@ -1951,15 +1951,27 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If daemon is running - prompt user before exiting
|
// If daemon is running - prompt user before exiting
|
||||||
if(typeof daemonManager != "undefined" && daemonRunning) {
|
if(daemonManager == undefined || persistentSettings.useRemoteNode) {
|
||||||
if (appWindow.walletMode == 0) {
|
closeAccepted();
|
||||||
|
} else if (appWindow.walletMode == 0) {
|
||||||
stopDaemon(closeAccepted);
|
stopDaemon(closeAccepted);
|
||||||
} else {
|
} else {
|
||||||
|
showProcessingSplash(qsTr("Checking local node status..."));
|
||||||
|
const handler = function(running) {
|
||||||
|
hideProcessingSplash();
|
||||||
|
if (running) {
|
||||||
showDaemonIsRunningDialog(closeAccepted);
|
showDaemonIsRunningDialog(closeAccepted);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
closeAccepted();
|
closeAccepted();
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (currentWallet) {
|
||||||
|
handler(!currentWallet.disconnected);
|
||||||
|
} else {
|
||||||
|
daemonManager.runningAsync(persistentSettings.nettype, handler);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeAccepted(){
|
function closeAccepted(){
|
||||||
|
|
Loading…
Reference in a new issue