mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-09 10:04:48 +00:00
Check before disconnecting wallet
This commit is contained in:
parent
97cd215491
commit
5d3fe93e1f
1 changed files with 3 additions and 0 deletions
3
main.qml
3
main.qml
|
@ -588,6 +588,9 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
function disconnectRemoteNode() {
|
function disconnectRemoteNode() {
|
||||||
|
if (typeof currentWallet === "undefined" || currentWallet === null)
|
||||||
|
return;
|
||||||
|
|
||||||
console.log("disconnecting remote node");
|
console.log("disconnecting remote node");
|
||||||
persistentSettings.useRemoteNode = false;
|
persistentSettings.useRemoteNode = false;
|
||||||
currentDaemonAddress = localDaemonAddress
|
currentDaemonAddress = localDaemonAddress
|
||||||
|
|
Loading…
Reference in a new issue