Some changes to locpanel
Repooc [09-19-17 - 10:41]
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",