aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardDaemonSettings.qml
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-01-22 18:43:39 +0900
committerstoffu <stoffu@protonmail.ch>2018-01-30 07:45:11 +0900
commitfd1f4bf628129e2dfce3de6dbdfc135ad4cadffa (patch)
treea428fb10a5ede0965969cc187552708f304c097d /wizard/WizardDaemonSettings.qml
parentaf882e87f5cfbd0454b31cf2846615dfb6267cbf (diff)
downloadmonzero-gui-fd1f4bf628129e2dfce3de6dbdfc135ad4cadffa.tar.gz
monzero-gui-fd1f4bf628129e2dfce3de6dbdfc135ad4cadffa.tar.xz
monzero-gui-fd1f4bf628129e2dfce3de6dbdfc135ad4cadffa.zip
Bootstrap daemon (requires #3165)
Diffstat (limited to 'wizard/WizardDaemonSettings.qml')
-rw-r--r--wizard/WizardDaemonSettings.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml
index 8634f652..953bb21d 100644
--- a/wizard/WizardDaemonSettings.qml
+++ b/wizard/WizardDaemonSettings.qml
@@ -55,6 +55,7 @@ ColumnLayout {
function onPageClosed(settingsObject) {
appWindow.persistentSettings.useRemoteNode = remoteNode.checked
appWindow.persistentSettings.remoteNodeAddress = remoteNodeEdit.getAddress();
+ appWindow.persistentSettings.bootstrapNodeAddress = bootstrapNodeEdit.daemonAddrText ? bootstrapNodeEdit.getAddress() : "";
return true
}
@@ -165,6 +166,19 @@ ColumnLayout {
}
}
+ Label {
+ Layout.fillWidth: true
+ Layout.topMargin: 20 * scaleRatio
+ fontSize: 14 * scaleRatio
+ text: qsTr("Bootstrap node (leave blank if not wanted)") + translationManager.emptyString
+ }
+ RemoteNodeEdit {
+ Layout.minimumWidth: 300 * scaleRatio
+ opacity: localNode.checked
+ id: bootstrapNodeEdit
+ daemonAddrText: persistentSettings.bootstrapNodeAddress.split(":")[0].trim()
+ daemonPortText: (persistentSettings.bootstrapNodeAddress.split(":")[1].trim() == "") ? "18081" : persistentSettings.bootstrapNodeAddress.split(":")[1]
+ }
}
RowLayout {