Default all frames to shown instead of hidden
This commit is contained in:
@@ -55,7 +55,7 @@ local function CreateDefaultClassSettings()
|
||||
for _, class in ipairs(HideCoAUI.CUSTOM_CLASSES) do
|
||||
classSettings[class] = {}
|
||||
for _, frameName in ipairs(HideCoAUI.FRAMES) do
|
||||
classSettings[class][frameName] = true
|
||||
classSettings[class][frameName] = false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -73,7 +73,7 @@ local function EnsureClassSettingsComplete(classSettings)
|
||||
|
||||
for _, frameName in ipairs(HideCoAUI.FRAMES) do
|
||||
if classSettings[class][frameName] == nil then
|
||||
classSettings[class][frameName] = true
|
||||
classSettings[class][frameName] = false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -154,7 +154,7 @@ local function EnsureProfileOverride(name)
|
||||
|
||||
for _, frameName in ipairs(HideCoAUI.FRAMES) do
|
||||
if profile.override.frameSettings[frameName] == nil then
|
||||
profile.override.frameSettings[frameName] = true
|
||||
profile.override.frameSettings[frameName] = false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -229,7 +229,7 @@ local function ShouldHideForClass(playerClass, frameName)
|
||||
local classSettings = GetClassSettings()[playerClass]
|
||||
|
||||
if not classSettings or classSettings[frameName] == nil then
|
||||
return true
|
||||
return false
|
||||
end
|
||||
|
||||
return classSettings[frameName]
|
||||
|
||||
Reference in New Issue
Block a user