Final slice of decomposing mining_tab.cpp. The ~529-line "Mode toggle" section (SOLO | POOL segmented control + pool URL/worker inputs) is moved verbatim into RenderMiningModeToggle(). mining_tab.cpp is now 311 lines (was 2628) — just the tab dispatch, thread-sync glue, benchmark advance, section-budget setup, and four card calls. State the toggle mutates is passed BY REFERENCE so behaviour is identical: the pool-mode flag, the settings-dirty flag, and the pool URL / worker char[256] buffers (the text inputs write into them) — passed as char(&)[256] references and named with their original identifiers so the body stays byte-identical. Verified: full-node + Windows + lite build, tests, hygiene. Audit #10 complete: the 2628-line monolith is now five focused files (earnings, stats, controls, mode-toggle + the 311-line shell). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 KiB
43 KiB