diff --git a/src/BlockchainBackend.cpp b/src/BlockchainBackend.cpp index 674f755..f540484 100644 --- a/src/BlockchainBackend.cpp +++ b/src/BlockchainBackend.cpp @@ -393,17 +393,6 @@ QVariantMap BlockchainBackend::generateConfig( normalized.insert("external_address", externalAddress.trimmed()); if (noPublicIpCheck) normalized.insert("no_public_ip_check", true); - if (deploymentMode == 0) { - QVariantMap deployment; - deployment.insert("well_known_deployment", "testnet"); - normalized.insert("deployment", deployment); - } else if (deploymentMode == 1 - && !deploymentConfigPath.trimmed().isEmpty()) { - QVariantMap deployment; - deployment.insert("config_path", - toLocalPath(deploymentConfigPath.trimmed())); - normalized.insert("deployment", deployment); - } // An explicit node state dir still wins: the module leaves a pinned path // untouched even when use_persistence_paths routing is on. if (!statePath.trimmed().isEmpty()) diff --git a/src/qml/views/GenerateConfigView.qml b/src/qml/views/GenerateConfigView.qml index 3cd0ff2..488a0ac 100644 --- a/src/qml/views/GenerateConfigView.qml +++ b/src/qml/views/GenerateConfigView.qml @@ -35,7 +35,7 @@ ColumnLayout { httpAddrField.text.trim(), externalAddrField.text.trim(), noPublicIpCheckBox.checked, - networkRadio.checked ? 0 : 1, + defaultNetworkRadioButton.checked ? 0 : 1, customDeploymentField.text.trim(), statePathField.text.trim()) } @@ -166,28 +166,33 @@ ColumnLayout { } RowLayout { Layout.fillWidth: true + Layout.preferredHeight: Math.max(defaultNetworkRadioButton.implicitHeight, + customNetworkRadioButton.implicitHeight, + customDeploymentField.implicitHeight, + browseDeploymentButton.implicitHeight) spacing: Theme.spacing.medium RadioButton { - id: networkRadio + id: defaultNetworkRadioButton font.pixelSize: Theme.typography.secondaryText palette.windowText: Theme.palette.text checked: true text: qsTr("Default") } RadioButton { - id: customRadio + id: customNetworkRadioButton font.pixelSize: Theme.typography.secondaryText palette.windowText: Theme.palette.text text: qsTr("Custom config") } LogosTextField { id: customDeploymentField - visible: customRadio.checked + visible: customNetworkRadioButton.checked Layout.fillWidth: true placeholderText: qsTr("Path to deployment config") } LogosButton { - visible: customRadio.checked + id: browseDeploymentButton + visible: customNetworkRadioButton.checked text: qsTr("Browse") onClicked: deploymentConfigFileDialog.open() }