From dae28af2362a3752c7febbfb8b99a8659a7bc4fe Mon Sep 17 00:00:00 2001 From: Tercio Date: Thu, 19 Jul 2018 16:40:11 -0300 Subject: [PATCH] - Missing localization for the welcome window has been added. --- startup.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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()