File Details
106
- R
- May 3, 2026
- 301.06 KB
- 58
- 12.0.5
- Retail
File Name
BazCore-106.zip
Supported Versions
- 12.0.5
BazCore
106 (2026-05-03)
Full Changelog Previous Releases
- BazCore v106 - CPU Monitor widget: explicit source + Start/Stop button. Two changes to the LBW-registered CPU Monitor widget. (1) The user reported it was showing under 'Other' on the BazWidgetDrawers Widgets settings page, even though it's clearly a BazCore widget. BWD's source-detection in Settings.lua falls back to ID-prefix matching (bazdrawer_, bazwidgets_, bazbroker_*) and the widget's id 'bazcore_cpumonitor' didn't match any of those - so it ended up in the Other bucket. The cleanest fix from the BazCore side is to declare source explicitly on the RegisterWidget call: source = 'BazCore'. The comment on BWD's source-inference code says explicit source wins over prefix detection, so this is the supported escape hatch for new categories. Companion fix in BazWidgetDrawers v053 also adds 'bazcore_' to the prefix list so any future BazCore widget that doesn't bother with the explicit source field still groups correctly. (2) The user wanted a Start/Stop button on the widget for toggling scriptProfile without having to open the full CPU page or run /bazcpu enable / /bazcpu disable manually. Added a UIPanelButtonTemplate button to the title bar (positioned to the LEFT of the existing Baz/All mode toggle). The button reads GetCVarBool('scriptProfile') to decide its label - 'Start' when off, 'Stop' when on - and OnClick dispatches to BazCore:EnableCPUProfiling(true) or BazCore:DisableCPUProfiling(true). Both helpers /reload after flipping the CVar (the WoW API requires it - GetAddOnCPUUsage doesn't start returning useful values until the reload picks up the new CVar state). Tooltip on the button warns about the reload so the click isn't surprising. The label refreshes on every Refresh tick (10 Hz) and on the manual scriptProfile-off branch in case some other code flips the CVar without reloading. New _refreshStartStop closure on host so both code paths can share the label-update logic. The mode toggle button is unchanged - both buttons coexist on the title bar with the Stop/Start to the left of the Baz/All toggle, bump to 106