Fixed shit #IBlameBenik
Darthpred [07-23-16 - 09:00]
diff --git a/ElvUI_SLE/core/core.lua b/ElvUI_SLE/core/core.lua
index c77feaf..6e044b5 100644
--- a/ElvUI_SLE/core/core.lua
+++ b/ElvUI_SLE/core/core.lua
@@ -80,9 +80,6 @@ function SLE:CheckIncompatible()
if Toolkit.IsAddOnLoaded('SquareMinimapButtons') and E.private.sle.minimap.mapicons.enable then
SLE:IncompatibleAddOn('SquareMinimapButtons', 'SquareMinimapButtons', E.private.sle.minimap.mapicons, "enable")
end
- if Toolkit.IsAddOnLoaded('ElvUI_LocLite') and E.db.sle.minimap.locPanel.enable then
- SLE:IncompatibleAddOn('Location Lite', 'Location Panel', E.db.sle.minimap.locPanel.enable, "enable")
- end
if Toolkit.IsAddOnLoaded('LootConfirm') then
E:StaticPopup_Show('LOOTCONFIRM_SLE_INCOMPATIBLE')
end
diff --git a/ElvUI_SLE/modules/minimap/locationbar.lua b/ElvUI_SLE/modules/minimap/locationbar.lua
index b0dba23..7f4e907 100644
--- a/ElvUI_SLE/modules/minimap/locationbar.lua
+++ b/ElvUI_SLE/modules/minimap/locationbar.lua
@@ -266,8 +266,15 @@ function LP:Template()
loc_panel.Ycoord:SetTemplate(LP.db.template)
end
+function LP:CheckForIncompatible()
+ if T.IsAddOnLoaded('ElvUI_LocLite') and E.db.sle.minimap.locPanel.enable then
+ SLE:IncompatibleAddOn('Location Lite', 'Location Panel', E.db.sle.minimap.locPanel.enable, "enable")
+ end
+end
+
function LP:Toggle()
if LP.db.enable then
+ LP:CheckForIncompatible()
loc_panel:Show()
E:EnableMover(loc_panel.mover:GetName())
else