Quantcast

fixed disable conditions

Darthpred [08-20-16 - 15:16]
fixed disable conditions
Filename
ElvUI_SLE/options/minimap/minimapicons_c.lua
diff --git a/ElvUI_SLE/options/minimap/minimapicons_c.lua b/ElvUI_SLE/options/minimap/minimapicons_c.lua
index 9d7d869..78514ff 100644
--- a/ElvUI_SLE/options/minimap/minimapicons_c.lua
+++ b/ElvUI_SLE/options/minimap/minimapicons_c.lua
@@ -58,7 +58,7 @@ local function configTable()
 				name = L["Icons Per Row"],
 				desc = L["Anchor mode for displaying the minimap buttons are skinned."],
 				min = 1, max = 30, step = 1,
-				disabled = function() return not E.private.sle.minimap.mapicons.enable end,
+				disabled = function() return not E.private.sle.minimap.mapicons.enable or not E.private.sle.minimap.mapicons.barenable end,
 				get = function(info) return E.db.sle.minimap.mapicons.iconperrow end,
 				set = function(info, value) E.db.sle.minimap.mapicons.iconperrow = value; SMB:Update(SLE_SquareMinimapButtonBar) end,
 			},
@@ -67,7 +67,7 @@ local function configTable()
 				name = L["Mouse Over"],
 				desc = L["Show minimap buttons on mouseover."],
 				type = "toggle",
-				disabled = function() return not E.private.sle.minimap.mapicons.enable end,
+				disabled = function() return not E.private.sle.minimap.mapicons.enable or not E.private.sle.minimap.mapicons.barenable end,
 				get = function(info) return E.db.sle.minimap.mapicons.iconmouseover end,
 				set = function(info, value) E.db.sle.minimap.mapicons.iconmouseover = value; SMB:ChangeMouseOverSetting() end,
 			},