Skip to content

Commit

Permalink
Delay loading the frames so the game has more time to load.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justw8 committed Aug 24, 2024
1 parent 84ef553 commit 858c03a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions TeleportMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,12 @@ local function OnEvent(self, event, addOnName)
end
end)
elseif event == "PLAYER_LOGIN" then
tpm:updateAvailableHearthstones()
tpm:updateAvailableWormholes()
createAnchors()
hooksecurefunc("ToggleGameMenu", createAnchors)
C_Timer.After(0.5, function() -- Delay so things can load?
tpm:updateAvailableHearthstones()
tpm:updateAvailableWormholes()
createAnchors()
hooksecurefunc("ToggleGameMenu", createAnchors)
end)
end
end

Expand Down

0 comments on commit 858c03a

Please sign in to comment.