From 76e8804741983e9826b4df239cfce4a3cec95bb2 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 22 Dec 2022 11:20:01 +0100 Subject: [PATCH] panel: hide chat buttons if chat is disabled --- modules/panel.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/panel.lua b/modules/panel.lua index 6cb1ef2c..75addf00 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -639,6 +639,8 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() if pfUI.chat.left:IsShown() then pfUI.chat.left:Hide() else pfUI.chat.left:Show() end end) + if not pfUI.chat then pfUI.panel.left.hide:Hide() end + SkinButton(pfUI.panel.left.hide) pfUI.panel.left.hide:SetBackdropColor(0,0,0,0) @@ -724,6 +726,8 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() if pfUI.chat.right:IsShown() then pfUI.chat.right:Hide() else pfUI.chat.right:Show() end end) + if not pfUI.chat then pfUI.panel.right.hide:Hide() end + SkinButton(pfUI.panel.right.hide) pfUI.panel.right.hide:SetBackdropColor(0,0,0,0)