diff --git a/startup.lua b/startup.lua index 6544fec1..43c01607 100644 --- a/startup.lua +++ b/startup.lua @@ -1823,8 +1823,18 @@ function _G._detalhes:Start() C_Timer.After (2, function() _detalhes:RefreshPlaterIntegration() end) - - C_Timer.After (0.5, function() if (ScriptErrorsFrame) then ScriptErrorsFrame:Hide() end end) + + --> suppress warnings for the first few seconds + CLOSE_SCRIPTERRORWINDOW = function() + if (ScriptErrorsFrame) then + ScriptErrorsFrame:Hide() + end + end + if (ScriptErrorsFrame) then + ScriptErrorsFrame:HookScript ("OnShow", CLOSE_SCRIPTERRORWINDOW) + ScriptErrorsFrame:Hide() + end + C_Timer.After (5, function() _G ["CLOSE_SCRIPTERRORWINDOW"] = nil end) end _detalhes.AddOnLoadFilesTime = GetTime()