Skip to content

Commit

Permalink
minimap: only update while the map is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Jan 6, 2025
1 parent 906e798 commit ae773fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae773fc

Please sign in to comment.