diff --git a/ElvUI_EltreumUI/Core/Core.lua b/ElvUI_EltreumUI/Core/Core.lua index 6a7fd87fd..e93a2f7ec 100644 --- a/ElvUI_EltreumUI/Core/Core.lua +++ b/ElvUI_EltreumUI/Core/Core.lua @@ -304,15 +304,6 @@ end --Better EventTrace CLEU logging thanks to ;Meorawr.wtf.lua; function ElvUI_EltreumUI:DevTools() if E.db.ElvUI_EltreumUI.dev then - if not EventTraceFrame then - UIParentLoadAddOn("Blizzard_DebugTools") - _G.TableAttributeDisplay:SetWidth(800) - _G.TableAttributeDisplay.LinesScrollFrame:SetWidth(700) - _G.TableAttributeDisplay.TitleButton.Text:SetWidth(600) - end - if not IsAddOnLoaded("Blizzard_EventTrace") then - LoadAddOn("Blizzard_EventTrace") - end local function LogEvent(self, event, ...) if event == "COMBAT_LOG_EVENT_UNFILTERED" or event == "COMBAT_LOG_EVENT" then self:LogEvent_Original(event, CombatLogGetCurrentEventInfo()) @@ -336,6 +327,12 @@ function ElvUI_EltreumUI:DevTools() frame:SetScript("OnEvent", function(self, event, ...) if event == "ADDON_LOADED" and (...) == "Blizzard_EventTrace" then OnEventTraceLoaded() + if not IsAddOnLoaded("Blizzard_DebugTools") then + UIParentLoadAddOn("Blizzard_DebugTools") + end + _G.TableAttributeDisplay:SetWidth(800) + _G.TableAttributeDisplay.LinesScrollFrame:SetWidth(700) + _G.TableAttributeDisplay.TitleButton.Text:SetWidth(600) frame:UnregisterAllEvents() end end)