Preserve minimap tracking show handler

This commit is contained in:
Dusk-92
2026-08-26 15:06:32 +02:00
parent 7013aca0bf
commit 4e3eaab5fe
+8 -3
View File
@@ -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