mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-08 00:53:42 +02:00
main: fix local node status check on closing uninitialized wallet
This commit is contained in:
parent
ce6cc47afe
commit
c439d6814b
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 New Issue
Block a user