Merge pull request #3373

6bc9627 SettingsNode: implement multiple remote nodes support (xiphon)
This commit is contained in:
luigi1111
2021-04-06 11:35:23 -05:00
7 changed files with 435 additions and 89 deletions

View File

@@ -42,7 +42,13 @@ ColumnLayout {
function save(){
persistentSettings.useRemoteNode = remoteNode.checked
persistentSettings.remoteNodeAddress = remoteNodeEdit.getAddress();
const index = remoteNodesModel.appendIfNotExists({
address: remoteNodeEdit.getAddress(),
username: "",
password: "",
trusted: false,
});
remoteNodesModel.applyRemoteNode(index);
if (bootstrapNodeEdit.daemonAddrText == "auto") {
persistentSettings.bootstrapNodeAddress = "auto";
} else {
@@ -201,7 +207,7 @@ ColumnLayout {
id: remoteNodeEdit
Layout.fillWidth: true
initialAddress: persistentSettings.remoteNodeAddress
initialAddress: remoteNodesModel.currentRemoteNode().address
}
}
}