Skip to content

Commit

Permalink
Don't color chat tabs when chat module is disabled (#1453)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind authored Jan 27, 2025
1 parent 1c99b62 commit f3dc77d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ElvUI/Core/Modules/Chat/Chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ function CH:PositionChats()

LO:RepositionChatDataPanels()

-- dont proceed when chat is disabled
-- don't proceed when chat is disabled
if not E.private.chat.enable then return end

for _, name in ipairs(_G.CHAT_FRAMES) do
Expand All @@ -1444,6 +1444,9 @@ function CH:Panels_ColorUpdate()
end

function CH:UpdateChatTabColors()
-- don't proceed when chat is disabled
if not E.private.chat.enable then return end

for _, name in ipairs(_G.CHAT_FRAMES) do
local tab = CH:GetTab(_G[name])
CH:FCFTab_UpdateColors(tab, tab.selected)
Expand Down

0 comments on commit f3dc77d

Please sign in to comment.