Commit 95c7022a authored by Simpy's avatar Simpy 🐹

redo dc44d6e3 differently even though it appears the same

parent 612aa497
......@@ -918,8 +918,13 @@ function UF:CreateHeader(parent, groupFilter, overrideName, template, groupName,
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
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