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
@@ -825,9 +825,9 @@ public:
// ── list view ───────────────────────────────────────────────────────────
if (c == KEY_CANCEL) {
if (_pick_admin_target) { _pick_admin_target = false; _task->gotoToolsScreen(); return true; }
if (_pick_admin_target) { _pick_admin_target = false; _task->leaveTool(); return true; }
if (_source == SRC_SCAN) leaveScan();
else _task->gotoToolsScreen();
else _task->leaveTool();
return true;
}
if (c == KEY_CONTEXT_MENU) { openActionMenu(); return true; }