aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-04-07 14:10:31 +0900
committerstoffu <stoffu@protonmail.ch>2018-04-07 14:10:31 +0900
commita9331a757fd779580ff96764e301a9a5963094bf (patch)
tree5fa10671ba1b516368f2cd9ef15484a3a0cb1a3e
parentcd4418dc458c0d6c01fd0fd75feab2721fdbac50 (diff)
downloadmonzero-gui-a9331a757fd779580ff96764e301a9a5963094bf.tar.gz
monzero-gui-a9331a757fd779580ff96764e301a9a5963094bf.tar.xz
monzero-gui-a9331a757fd779580ff96764e301a9a5963094bf.zip
Set daemon address to WalletManager (requires #3576)
-rw-r--r--main.qml5
1 files changed, 4 insertions, 1 deletions
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;
}