diff --git a/main.qml b/main.qml index b481985c..9e41ecbb 100644 --- a/main.qml +++ b/main.qml @@ -419,7 +419,9 @@ ApplicationWindow { function connectRemoteNode() { console.log("connecting remote node"); persistentSettings.useRemoteNode = true; - currentWallet.initAsync(persistentSettings.remoteNodeAddress); + currentDaemonAddress = persistentSettings.remoteNodeAddress; + currentWallet.initAsync(currentDaemonAddress); + walletManager.setDaemonAddress(currentDaemonAddress); remoteNodeConnected = true; } @@ -428,6 +430,7 @@ ApplicationWindow { persistentSettings.useRemoteNode = false; currentDaemonAddress = localDaemonAddress currentWallet.initAsync(currentDaemonAddress); + walletManager.setDaemonAddress(currentDaemonAddress); remoteNodeConnected = false; }