fix(ui): Tools > Repeater shows its settings before the switch is on

Network mode, the dedicated profile and the flood filters were only
built into the row list once client_repeat was already ON, so setting
up a repeater meant enabling it blind first. Every other on/off tool
in ui-new (Bot, Live Share, Locator) already keeps its settings
visible while off; Repeater now matches.
This commit is contained in:
Jakub
2026-08-31 20:28:32 +02:00
parent d012ad7ee9
commit 0b34eac41e
3 changed files with 7 additions and 2 deletions
@@ -50,10 +50,14 @@ class RepeaterScreen : public UIScreen {
return { &p->repeater_freq, &p->repeater_bw, &p->repeater_sf, &p->repeater_cr };
}
// Shown regardless of the Repeater ON/OFF row itself -- these are plain
// NodePrefs settings, no different from Bot's per-target rows or Live
// Share's move/gap/heartbeat, so they stay configurable (and visible) while
// off rather than forcing an enable/configure/maybe-disable-again dance.
void buildItems(NodePrefs* p) {
_item_count = 0;
_items[_item_count++] = IT_REPEATER;
if (p && p->client_repeat) {
if (p) {
_items[_item_count++] = IT_NETWORK;
if (p->repeater_use_profile) {
_items[_item_count++] = IT_RPRESET;