SettingsNode: implement multiple remote nodes support

This commit is contained in:
xiphon
2021-04-03 10:45:02 +00:00
parent 34df4e74d4
commit 6bc9627046
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 {
@@ -179,7 +185,7 @@ ColumnLayout {
id: remoteNodeEdit
Layout.fillWidth: true
initialAddress: persistentSettings.remoteNodeAddress
initialAddress: remoteNodesModel.currentRemoteNode().address
}
}
}