mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 20:40:50 +00:00
Fix addon button panel startup visibility (#61)
* fix(addonbuttons): rescan before startup visibility check * Fix missing percentage symbols in unitframe labels
This commit is contained in:
@@ -399,15 +399,16 @@ pfUI:RegisterModule("addonbuttons", function ()
|
||||
|
||||
-- Initial setup on the next frame, once other addons' minimap buttons exist
|
||||
RunNextFrame(function()
|
||||
-- check if the panel should be shown by default
|
||||
-- rescan before deciding whether the panel should be shown by default
|
||||
pfUI.addonbuttons:ProcessButtons()
|
||||
|
||||
if C.abuttons.showdefault == "1" and GetNumButtons() > 0 then
|
||||
pfUI.addonbuttons:Show()
|
||||
else
|
||||
pfUI.addonbuttons:Hide()
|
||||
end
|
||||
|
||||
-- update all buttons and apply workarounds
|
||||
pfUI.addonbuttons:ProcessButtons()
|
||||
-- apply workarounds
|
||||
for k, v in pairs(pfUI.addonbuttons.overrides) do
|
||||
_G[k] = v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user