feat: a channel's scope can follow the default -- Default is the new start value

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-06 14:09:22 +02:00
co-authored by Claude Opus 5.5
parent 5a92d36509
commit c4217d8632
8 changed files with 63 additions and 58 deletions
@@ -761,13 +761,9 @@ public:
if (res == PopupMenu::SELECTED) {
int sel = _scope_action_menu.selectedIndex();
if (sel == 0) { // Set as default
// DMs, the relay's primary slot and every channel left on
// "Default" follow it; the list marks it [default].
the_mesh.setDefaultScope((uint8_t)_scope_action_idx);
// "Default" is the protocol's own word (CMD_SET_DEFAULT_FLOOD_SCOPE,
// and what the app shows), but on its own it doesn't say default
// for *what* -- channels carry their own pick and don't inherit it.
// Spell out the two things it actually governs, at the moment the
// user sets it, rather than leaving the list marker to imply more.
_task->showAlert("Default: DMs + relay", 1400);
} else if (sel == 1 && _scope_action_idx >= 1) { // Rename
_scope_rename_idx = _scope_action_idx;
_kb->begin(sl.name((uint8_t)_scope_action_idx), 23);