minimap: only update while the map is closed

This commit is contained in:
shagu
2025-01-06 21:46:41 +01:00
parent 906e798516
commit ae773fc486
+4 -1
View File
@@ -171,8 +171,11 @@ pfUI:RegisterModule("minimap", "vanilla:tbc", function ()
pfUI.minimapZone.text:SetJustifyH("CENTER")
pfUI.minimapZone:SetScript("OnEvent", function()
if C.appearance.minimap.coordstext ~= "off" then
if not WorldMapFrame:IsShown() then
SetMapToCurrentZone()
end
if C.appearance.minimap.coordstext ~= "off" then
local pvp, _, arena = GetZonePVPInfo()
if arena then
pfUI.minimapZone.text:SetTextColor(1.0, 0.1, 0.1)