Commit 298984ca authored by Simpy's avatar Simpy 🐹

redo 2d037564 differently even though it appears the same

parent 8e300406
......@@ -918,8 +918,13 @@ function UF:CreateHeader(parent, groupFilter, overrideName, template, groupName,
end
function UF:GetSmartVisibilitySetting(setting, group, smart, db)
if smart and UF.SmartSettings[group] and UF.SmartSettings[group][setting] ~= nil then
return UF.SmartSettings[group][setting]
if smart then
local options = UF.SmartSettings[group]
local value = options and options[setting]
if value ~= nil then
return value
end
end
return db[setting]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment