Fix Nav tab infinite recursion (pre-UX-sweep bug)

The reverted code had two bugs in the tab switching logic:
1. closeNavigate() called switchTab() -> infinite recursion since
   switchTab() calls closeNavigate() when leaving tabNavigate
2. currentTab was updated AFTER closeNavigate(), so the recursive
   call hit the same condition over and over

Fix: move currentTab assignment before cleanup, use a wasNavigating
flag to track the old tab state, and make closeNavigate() only reset
nav UI (caller handles tab transition).
This commit is contained in:
2026-05-21 07:45:16 -04:00
parent 62016bae83
commit 14687e7ba6
3 changed files with 15 additions and 6 deletions
Binary file not shown.
View File