mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +00:00
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:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user