Drop dead deployment JSON, rename radio ids, fix layout jump.

This commit is contained in:
Alejandro Cabeza Romero 2026-07-03 16:57:22 +02:00
parent bb793c4ad4
commit 5530e501ca
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
2 changed files with 10 additions and 16 deletions

View File

@ -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())

View File

@ -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()
}