Skip to content

Commit

Permalink
fix: update trackers when mode change
Browse files Browse the repository at this point in the history
fix #406
  • Loading branch information
fang2hou committed Aug 12, 2024
1 parent 75b2650 commit 84dd7fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Modules/Maps/EventTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,15 @@ function ET:Initialize()
ET:UpdateTrackers()
end
)

self:RegisterEvent(
"CVAR_UPDATE",
function(_, cvar)
if cvar == "miniWorldMap" then
E:Delay(0.25, self.UpdateTrackers, self)
end
end
)
end

function ET:ProfileUpdate()
Expand Down

0 comments on commit 84dd7fe

Please sign in to comment.