From a6f3969e1ec33264d8512e16ebec39f65d9cfee2 Mon Sep 17 00:00:00 2001 From: Repooc Date: Tue, 19 Sep 2017 06:41:02 -0400 Subject: [PATCH] Some changes to locpanel --- ElvUI_SLE/modules/minimap/locationbar.lua | 16 +++++++++------- ElvUI_SLE/options/minimap/locpanel_c.lua | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ElvUI_SLE/modules/minimap/locationbar.lua b/ElvUI_SLE/modules/minimap/locationbar.lua index 2b1dbca..78cb0a0 100644 --- a/ElvUI_SLE/modules/minimap/locationbar.lua +++ b/ElvUI_SLE/modules/minimap/locationbar.lua @@ -503,17 +503,19 @@ function LP:PLAYER_ENTERING_WORLD() end function LP:ZONE_CHANGED_NEW_AREA() - if not LP.db.enable then return end + --if not LP.db.enable then return end LP:OrderHallToggle() end function LP:OrderHallToggle() - if (C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0)) and LP.db.orderhallhide then - --print("I have entered my class hall") - loc_panel:Hide() - elseif not loc_panel:IsShown() then - --print("I have left my class hall") - loc_panel:Show() + if LP.db.enable then + if (C_Garrison.IsPlayerInGarrison(LE_GARRISON_TYPE_7_0)) and LP.db.orderhallhide then + --print("I have entered my class hall") + loc_panel:Hide() + elseif not loc_panel:IsShown() then + --print("I have left my class hall") + loc_panel:Show() + end end end diff --git a/ElvUI_SLE/options/minimap/locpanel_c.lua b/ElvUI_SLE/options/minimap/locpanel_c.lua index 9d0575f..b2a458a 100644 --- a/ElvUI_SLE/options/minimap/locpanel_c.lua +++ b/ElvUI_SLE/options/minimap/locpanel_c.lua @@ -13,7 +13,7 @@ local function configTable() type = "toggle", name = L["Enable"], order = 1, - set = function(info, value) E.db.sle.minimap.locPanel[ info[#info] ] = value; LP:Toggle() end, + set = function(info, value) E.db.sle.minimap.locPanel[ info[#info] ] = value; LP:Toggle(); LP:OrderHallToggle() end, }, linkcoords = { type = "toggle", -- 1.7.9.5