added a warning line in GUI and WEBUI
This commit is contained in:
@@ -8,6 +8,7 @@ from PyQt6.QtWidgets import (
|
|||||||
QDoubleSpinBox,
|
QDoubleSpinBox,
|
||||||
QFormLayout,
|
QFormLayout,
|
||||||
QGroupBox,
|
QGroupBox,
|
||||||
|
QLabel,
|
||||||
QLineEdit,
|
QLineEdit,
|
||||||
QPlainTextEdit,
|
QPlainTextEdit,
|
||||||
QSizePolicy,
|
QSizePolicy,
|
||||||
@@ -200,6 +201,10 @@ def build_processing_group(owner) -> QGroupBox:
|
|||||||
split_index=1,
|
split_index=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
owner._gpr_geometry_hint = QLabel("To apply Tx/Rx geometry or permittivity changes: Save Config and restart the app")
|
||||||
|
owner._gpr_geometry_hint.setWordWrap(True)
|
||||||
|
owner._gpr_common_page.layout().addWidget(owner._gpr_geometry_hint)
|
||||||
|
|
||||||
owner._gpr_input_positions_input = QLineEdit(str(gpr_live_defaults.input_positions))
|
owner._gpr_input_positions_input = QLineEdit(str(gpr_live_defaults.input_positions))
|
||||||
owner._gpr_input_positions_input.setPlaceholderText("0,1,2")
|
owner._gpr_input_positions_input.setPlaceholderText("0,1,2")
|
||||||
|
|
||||||
|
|||||||
@@ -173,6 +173,12 @@ function buildSettingsForm(schema) {
|
|||||||
settingsFields.appendChild(heading);
|
settingsFields.appendChild(heading);
|
||||||
}
|
}
|
||||||
settingsFields.appendChild(makeFieldRow(entry));
|
settingsFields.appendChild(makeFieldRow(entry));
|
||||||
|
if (entry.name === "rx_geometry") {
|
||||||
|
const note = document.createElement("div");
|
||||||
|
note.className = "config-active";
|
||||||
|
note.textContent = "To apply Tx/Rx geometry or permittivity changes: Save Config and restart the app";
|
||||||
|
settingsFields.appendChild(note);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
formSignature = schema.map((e) => e.name).join(",");
|
formSignature = schema.map((e) => e.name).join(",");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user