fix(ui-new): a tool opened from Home's Tools page goes back to Home

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 1af8ce1a85
commit 50d0d5577b
13 changed files with 24 additions and 17 deletions
+4
View File
@@ -62,6 +62,7 @@ class UITask : public UITaskBase, public UiCoreHost {
unsigned long _next_refresh, _auto_off;
NodePrefs* _node_prefs;
bool _locked;
bool _tool_from_home = false;
unsigned long _lock_wake_until; // when to blank screen again after locked wake (5s)
int _lock_seq_count; // Enter presses while Back held (lock/unlock sequence)
unsigned long _lock_seq_ms; // millis() of last lock-sequence press (for timeout)
@@ -282,6 +283,9 @@ public:
void pickBotChannelTarget(); // open Messages to choose the auto-reply bot's channel
void pickBotRoomTarget(); // open Messages to choose the auto-reply bot's room
void gotoToolsScreen();
// A tool's Back: to Home when Home's Tools page opened it, else to the Tools list.
void leaveTool();
void setToolFromHome(bool home) { _tool_from_home = home; }
void gotoRingtoneEditor(int slot = 0);
void gotoBotScreen();
void pickAdminTarget(); // Admin is remote-only: open Nodes to pick a repeater/room