panel: hide minimap panel if disabled

This commit is contained in:
Cameron Weaver (Clutch)
2017-09-28 10:53:04 -04:00
committed by Shagu
parent 12a5dab968
commit 061425d953
+2
View File
@@ -647,6 +647,8 @@ pfUI:RegisterModule("panel", function ()
pfUI.panel.minimap.text:SetPoint("CENTER", 0, 0)
pfUI.panel.minimap.text:SetFontObject(GameFontWhite)
if C.panel.other.minimap == "none" then pfUI.panel.minimap:Hide() end
-- MicroButtons
if C.panel.micro.enable == "1" then
pfUI.panel.microbutton = CreateFrame("Frame", "pfPanelMicroButton", UIParent)