mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-28 13:46:41 +00:00
refactor(admin): make Admin remote-only, move device settings to Settings
A device administering itself via the Admin tool read as awkward, so the local mode is gone and its options relocated to Settings. - AdminScreen is remote-only: drop the CHOOSER phase, _local_mode, the LocalField/LocalKind model and activateLocalField/commitLocalField. Phases collapse to LOGIN/COMMAND/REPLY, entered only via startFor(). - Tools > Admin opens straight to the Nodes picker (ACT_ADMIN -> pickAdminTarget()). Backing out of a command screen returns to that picker; the picker's Cancel returns to Tools. gotoAdminScreen() removed. - Settings > System gains Name (keyboard-edited node_name) and Reboot (action row, placed last so it isn't the default cursor). Radio + TX power were already in Settings; Send advert is the home ADVERT page. Docs: tools_screen.md Admin section rewritten remote-only; settings_screen.md System table gains Name + Reboot. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -49,7 +49,7 @@ class ToolsScreen : public UIScreen {
|
||||
case ACT_BOT: _task->gotoBotScreen(); break;
|
||||
case ACT_AUTOADVERT: _task->gotoAutoAdvertScreen(); break;
|
||||
case ACT_REPEATER: _task->gotoRepeaterScreen(); break;
|
||||
case ACT_ADMIN: _task->gotoAdminScreen(); break;
|
||||
case ACT_ADMIN: _task->pickAdminTarget(); break; // Admin is remote-only: pick a node first
|
||||
case ACT_CLOCK: _task->gotoClockTools(); break;
|
||||
case ACT_RINGTONE: _task->gotoRingtoneEditor(); break;
|
||||
case ACT_DIAGNOSTICS: _task->gotoDiagnosticsScreen(); break;
|
||||
|
||||
Reference in New Issue
Block a user