panel: only show addons if component is enabled

This commit is contained in:
shagu
2020-04-29 11:19:02 +02:00
parent 65374aea5a
commit 11e7cb4bec
+2 -2
View File
@@ -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