forked from Public/monero-gui
SettingsNode: implement multiple remote nodes support
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user