diff --git a/RemainingXP/Main.lua b/RemainingXP/Main.lua index 1c3526b..070fd04 100644 --- a/RemainingXP/Main.lua +++ b/RemainingXP/Main.lua @@ -868,14 +868,22 @@ local function ApplyPreset(i) frames.options.display.position.xOffset.setValue(db.display.position.offset.x) frames.options.display.position.yOffset.setValue(db.display.position.offset.y) frames.options.display.position.frameStrata.setSelected(db.display.layer.strata) - if not db.display.background.visible then - frames.options.display.text.visible.setState(true) - frames.options.display.text.visible:SetAttribute("loaded", true) --Update dependent widgets - end + frames.options.display.text.visible.setState(true) + frames.options.display.text.visible:SetAttribute("loaded", true) --Update dependent widgets frames.options.display.background.visible.setState(db.display.background.visible) frames.options.display.background.visible:SetAttribute("loaded", true) --Update dependent widgets frames.options.display.background.size.width.setValue(db.display.background.size.width) frames.options.display.background.size.height.setValue(db.display.background.size.height) + + --Check the visibility options widgets + if not db.display.background.visible then + frames.options.display.text.visible.checkbox:SetButtonState("DISABLED") + frames.options.display.text.visible.checkbox:UnlockHighlight() + frames.options.display.text.visible:SetAlpha(0.4) + else + frames.options.display.text.visible.checkbox:SetButtonState("NORMAL") + frames.options.display.text.visible:SetAlpha(1) + end end --Save the current display position & visibility to the custom preset diff --git a/RemainingXP/Resources.lua b/RemainingXP/Resources.lua index e21341c..7fc3008 100644 --- a/RemainingXP/Resources.lua +++ b/RemainingXP/Resources.lua @@ -226,7 +226,8 @@ local changelogDB = { "The XP Display size will now properly be able to be set again via Settings after applying a preset.", "The default XP Status Bar will now be hidden again after exiting Edit Mode if the \"Hide default XP bar\" option is enabled.", "Other small fixes, changes & improvements.", - "#F_Hotfix (2.3.1 7/24/2023):_#", + "#F_Hotfix 2.3.1 (7/24/2023):_#", + "The Background and Text \"Visible\" checkboxes will now be updated properly and work as expected when a preset is applied.", "Addon data recovery will now work properly when loading old data.", }, }