fix(ui): handle lite-only NavPage cases in tracePageName switch

tracePageName()'s switch over ui::NavPage was missing the two lite-only
tab values (LiteConsole, LiteNetwork), producing -Wswitch warnings in the
lite build. Add both, tracing them to the same labels as their full-node
siblings ("Console tab" / "Network tab") — exactly one of each pair shows
per variant. Trace-string only; no behaviour change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-07 01:04:35 -05:00
parent b75801f5c4
commit 715cfd622e

View File

@@ -109,7 +109,9 @@ const char* tracePageName(ui::NavPage page)
case ui::NavPage::Mining: return "Mining tab";
case ui::NavPage::Market: return "Market tab";
case ui::NavPage::Console: return "Console tab";
case ui::NavPage::LiteConsole: return "Console tab"; // lite-only sibling of Console
case ui::NavPage::Peers: return "Network tab";
case ui::NavPage::LiteNetwork: return "Network tab"; // lite-only sibling of Peers
case ui::NavPage::Explorer: return "Explorer tab";
case ui::NavPage::Settings: return "Settings";
case ui::NavPage::Count_: break;