Gate the macro icon hook behind a config flag

Run the Blizzard_MacroUI hook only when C.disabled["macroicons"] is
"1".
This commit is contained in:
Brues
2026-08-05 21:43:51 -05:00
parent 76927c2c18
commit 0cc9cf4165
+2 -1
View File
@@ -355,6 +355,7 @@ pfUI:RegisterModule("turtle-wow", function ()
end end
end) end)
if C.disabled["macroicons"] == "1" then
HookAddonOrVariable("Blizzard_MacroUI", function() HookAddonOrVariable("Blizzard_MacroUI", function()
if type(UpdateMacroIconFilenames) ~= "function" then return end if type(UpdateMacroIconFilenames) ~= "function" then return end
function _G.UpdateMacroIconFilenames() function _G.UpdateMacroIconFilenames()
@@ -372,7 +373,7 @@ pfUI:RegisterModule("turtle-wow", function ()
provider:Release() provider:Release()
end end
end) end)
end
-- add turtle-wow sell values -- add turtle-wow sell values
pfSellData = { pfSellData = {