Quantcast

Graying out DBM option if it's not loaded

Darthpred [07-07-12 - 07:03]
Graying out DBM option if it's not loaded
Filename
ElvUI_SLE/modules/skins/options.lua
diff --git a/ElvUI_SLE/modules/skins/options.lua b/ElvUI_SLE/modules/skins/options.lua
index befecea..7509ae0 100644
--- a/ElvUI_SLE/modules/skins/options.lua
+++ b/ElvUI_SLE/modules/skins/options.lua
@@ -18,6 +18,7 @@ E.Options.args.sle.args.skins = {
 			args = {
 				fontsize = {
 					order = 2,
+					disabled = function() return not IsAddOnLoaded('DBM-Core') end,
 					type = "range",
 					name = L['Font Size'],
 					desc = L["Sets font size on DBM bars"],