Merge pull request #3422

69a6c6b WizardDaemonSettings: implement full remote node configuration support (xiphon)
This commit is contained in:
luigi1111
2021-04-22 01:57:04 -04:00
4 changed files with 144 additions and 122 deletions

View File

@@ -41,14 +41,7 @@ ColumnLayout {
spacing: 10
function save(){
persistentSettings.useRemoteNode = remoteNode.checked
const index = remoteNodesModel.appendIfNotExists({
address: remoteNodeEdit.getAddress(),
username: "",
password: "",
trusted: false,
});
remoteNodesModel.applyRemoteNode(index);
persistentSettings.useRemoteNode = remoteNode.checked;
if (bootstrapNodeEdit.daemonAddrText == "auto") {
persistentSettings.bootstrapNodeAddress = "auto";
} else {
@@ -205,18 +198,9 @@ ColumnLayout {
}
}
ColumnLayout {
visible: remoteNode.checked
spacing: 0
Layout.topMargin: 8
MoneroComponents.RemoteNodeList {
Layout.fillWidth: true
MoneroComponents.RemoteNodeEdit {
id: remoteNodeEdit
Layout.fillWidth: true
initialAddress: remoteNodesModel.currentRemoteNode().address
}
Layout.topMargin: 8
visible: remoteNode.checked
}
}