More safechecks. This fixes #295
Darthpred [08-23-16 - 06:15]
More safechecks. This fixes #295
diff --git a/ElvUI_SLE/options/uibuttons_c.lua b/ElvUI_SLE/options/uibuttons_c.lua
index 0a0bbbb..3ed4c21 100644
--- a/ElvUI_SLE/options/uibuttons_c.lua
+++ b/ElvUI_SLE/options/uibuttons_c.lua
@@ -353,9 +353,10 @@ local function configTable()
},
},
}
-
- for k, v in T.pairs(UB.Holder.Addon) do
- if k ~= "Toggle" and T.type(v) == "table" and (v.HasScript and v:HasScript("OnClick")) then E.Options.args.sle.args.modules.args.uibuttons.args.Addon.args.called.values[k] = k end
+ if E.private.sle.uibuttons.style == "dropdown" then
+ for k, v in T.pairs(UB.Holder.Addon) do
+ if k ~= "Toggle" and T.type(v) == "table" and (v.HasScript and v:HasScript("OnClick")) then E.Options.args.sle.args.modules.args.uibuttons.args.Addon.args.called.values[k] = k end
+ end
end
end