Commit 93518d45 authored by Blazeflack's avatar Blazeflack

Fixed untimely execution of LO:RepositionChatDataPanels()

This prevents errors in plugins where code is suddenly executed out of expected order.
parent f130b3a3
......@@ -41,12 +41,6 @@ function LO:Initialize()
Panel_OnShow(LO.TopPanel)
E.FrameLocks.ElvUI_TopPanel = true
LO:TopPanelVisibility()
-- if the chat module is off we still need to spawn the dts for the panels
-- if we are going to have the panels show even when it's disabled
if not E.private.chat.enable then
LO:RepositionChatDataPanels()
end
end
function LO:BottomPanelVisibility()
......
......@@ -3047,7 +3047,12 @@ function CH:Initialize()
CH:DelayGuildMOTD() -- Keep this before `is Chat Enabled` check
if not E.private.chat.enable then return end
if not E.private.chat.enable then
-- if the chat module is off we still need to spawn the dts for the panels
-- if we are going to have the panels show even when it's disabled
LO:RepositionChatDataPanels()
return
end
CH.Initialized = true
CH.db = E.db.chat
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment