From 11e7cb4bec329b7b0dbe501a81ef0b583041f1c8 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 29 Apr 2020 11:19:02 +0200 Subject: [PATCH] panel: only show addons if component is enabled --- modules/panel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/panel.lua b/modules/panel.lua index 25bc11cc..803ca325 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -170,9 +170,9 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() GameTooltip:Show() end widget.Click = function() - if pfUI.addons:IsShown() then + if pfUI.addons and pfUI.addons:IsShown() then pfUI.addons:Hide() - else + elseif pfUI.addons then pfUI.addons:Show() end end