Commit cbfcec34 authored by Simpy's avatar Simpy 🐹

this will hide the voice chat icon on left chat when the panel isn't shown by...

this will hide the voice chat icon on left chat when the panel isn't shown by attaching it to the chat tab which is hidden, so it will only show when the panel is shown (either on the tab or on the panel)
parent 9526b05a
......@@ -129,8 +129,9 @@ local channelButtons = {
function LO:ToggleChatTabPanels(rightOverride, leftOverride)
if E.private.chat.enable then
local attachToTab = (E.db.chat.panelBackdrop == "HIDEBOTH" or E.db.chat.panelBackdrop == "RIGHT") or E.db.chat.panelTabBackdrop
for _, button in pairs(channelButtons) do
button.Icon:SetParent(E.db.chat.panelTabBackdrop and _G.LeftChatTab or _G.LeftChatPanel)
button.Icon:SetParent((attachToTab and _G.LeftChatTab) or _G.LeftChatPanel)
end
end
......
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