diff options
| author | xiphon <xiphon@protonmail.com> | 2020-07-02 13:29:27 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-07-02 13:39:56 +0000 |
| commit | fead82b1984dcf0a5ec69d861f858cd226c54fde (patch) | |
| tree | 841eefb60ddec104df0fb1bd8e6c3478877fdcc0 /wizard | |
| parent | e1e862bce49467e0cafb18c837eeecb7fd505bb4 (diff) | |
| download | monzero-gui-fead82b1984dcf0a5ec69d861f858cd226c54fde.tar.gz monzero-gui-fead82b1984dcf0a5ec69d861f858cd226c54fde.tar.xz monzero-gui-fead82b1984dcf0a5ec69d861f858cd226c54fde.zip | |
RemoteNodeEdit: initialAddress, add square brackets on ipv6 input
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardDaemonSettings.qml | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml index 1a5ebd72..7155db10 100644 --- a/wizard/WizardDaemonSettings.qml +++ b/wizard/WizardDaemonSettings.qml @@ -147,15 +147,7 @@ ColumnLayout { Layout.minimumWidth: 300 //labelText: qsTr("Bootstrap node (leave blank if not wanted)") + translationManager.emptyString - daemonAddrText: persistentSettings.bootstrapNodeAddress.split(":")[0].trim() - daemonPortText: { - var node_split = persistentSettings.bootstrapNodeAddress.split(":"); - if(node_split.length == 2){ - (node_split[1].trim() == "") ? appWindow.getDefaultDaemonRpcPort(persistentSettings.nettype) : node_split[1]; - } else { - return "" - } - } + initialAddress: persistentSettings.bootstrapNodeAddress } } } @@ -184,9 +176,7 @@ ColumnLayout { id: remoteNodeEdit Layout.fillWidth: true - property var rna: persistentSettings.remoteNodeAddress - daemonAddrText: rna.search(":") != -1 ? rna.split(":")[0].trim() : "" - daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? appWindow.getDefaultDaemonRpcPort(persistentSettings.nettype) : persistentSettings.remoteNodeAddress.split(":")[1] : "" + initialAddress: persistentSettings.remoteNodeAddress } } } |
