Originally Posted by Tuhljin
... but this seemingly does:
Code:
C_Timer.After(0, function()
C_Timer.After(3, function()
ToastForEvents()
end)
end)
|
The first call is basically telling
C_Timer to run it when it can. After the game has loaded, it actually runs and the second one schedules the final function for 3 additional seconds from then. The first example would vary depending if it took 3 seconds or longer to finish loading and push out the first rendered frame.
Trying to support
/reload is a niche case and you should just make sure your code doesn't throw any errors. Ideally, nobody should need to use it in a normal session. It only exists because sometimes mistakes happen. You shouldn't need to complicate your code more covering other addons' problems.