From 715cfd622e37921cb174c895c7bad10ab0a24310 Mon Sep 17 00:00:00 2001 From: DanS Date: Tue, 7 Jul 2026 01:04:35 -0500 Subject: [PATCH] fix(ui): handle lite-only NavPage cases in tracePageName switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/app_network.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app_network.cpp b/src/app_network.cpp index e8a2137..2ef10b1 100644 --- a/src/app_network.cpp +++ b/src/app_network.cpp @@ -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;