Preserve minimap tracking show handler
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
local _G = ShaguTweaks.GetGlobalEnv()
|
|
||||||
local T = ShaguTweaks.T
|
local T = ShaguTweaks.T
|
||||||
|
local hooksecurefunc = hooksecurefunc or ShaguTweaks.hooksecurefunc
|
||||||
|
|
||||||
local module = ShaguTweaks:register({
|
local module = ShaguTweaks:register({
|
||||||
title = T["Hide Tracking Icon"],
|
title = T["Hide Tracking Icon"],
|
||||||
@@ -11,7 +11,12 @@ local module = ShaguTweaks:register({
|
|||||||
})
|
})
|
||||||
|
|
||||||
module.enable = function(self)
|
module.enable = function(self)
|
||||||
-- Désactive l'affichage automatique du bouton de suivi
|
-- Keep the tracking icon hidden without replacing its Show method. This
|
||||||
MiniMapTrackingFrame.Show = function() end
|
-- preserves Blizzard/Turtle and addon behavior while applying our visual
|
||||||
|
-- preference after every attempted show.
|
||||||
|
hooksecurefunc(MiniMapTrackingFrame, "Show", function()
|
||||||
|
MiniMapTrackingFrame:Hide()
|
||||||
|
end)
|
||||||
|
|
||||||
MiniMapTrackingFrame:Hide()
|
MiniMapTrackingFrame:Hide()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user