From 952b174b2e371860c1e911cf029886f07edc07ef Mon Sep 17 00:00:00 2001 From: erhant Date: Thu, 18 Jun 2026 23:34:49 +0300 Subject: [PATCH] chore: remove port from settings page --- src/qml/pages/SettingsPage.qml | 39 +++------------------------------- 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/src/qml/pages/SettingsPage.qml b/src/qml/pages/SettingsPage.qml index 2c54412..5f0276c 100644 --- a/src/qml/pages/SettingsPage.qml +++ b/src/qml/pages/SettingsPage.qml @@ -17,7 +17,6 @@ Item { if (page.backend) { var current = page.backend.configText; editor.text = (current && current.length > 0) ? current : page.backend.defaultConfig; - portField.text = "8779"; } } @@ -46,40 +45,6 @@ Item { font.pixelSize: Theme.typography.secondaryText } - RowLayout { - Layout.fillWidth: true - spacing: Theme.spacing.medium - - LogosText { - text: "RPC port" - color: Theme.palette.textSecondary - font.pixelSize: Theme.typography.secondaryText - Layout.alignment: Qt.AlignVCenter - } - Rectangle { - Layout.preferredWidth: 120 - Layout.preferredHeight: 36 - radius: Theme.spacing.radiusMedium - color: Theme.palette.backgroundSecondary - border.width: 1 - border.color: portField.activeFocus ? Theme.palette.borderInteractive - : Theme.palette.borderSecondary - TextField { - id: portField - anchors.fill: parent - anchors.leftMargin: Theme.spacing.medium - anchors.rightMargin: Theme.spacing.medium - verticalAlignment: TextInput.AlignVCenter - text: "8779" - inputMethodHints: Qt.ImhDigitsOnly - color: Theme.palette.text - font.pixelSize: Theme.typography.secondaryText - background: Item {} - } - } - Item { Layout.fillWidth: true } - } - // JSON editor. The TextArea is anchored to fill its container directly // (NOT wrapped in a ScrollView — there it doesn't inherit the viewport // size and collapses to an invisible implicit size). It scrolls its @@ -175,7 +140,9 @@ Item { return; } page.setStatus("Saving…", false); - logos.watch(page.backend.applyConfigJson(editor.text, portField.text), + // Port is an internal detail of the indexer's own RPC listener; the + // explorer reads over the Logos protocol, so we pass "" (keep default). + logos.watch(page.backend.applyConfigJson(editor.text, ""), function (ok) { if (ok) { page.setStatus("Saved. Indexer starting…", false);