Skip to content

Commit

Permalink
Merge pull request #765 from robertthepie/Modoptions-fix-default-on-b…
Browse files Browse the repository at this point in the history
…ool-mark

Modoptions: Mark as changed fix: default bool on
  • Loading branch information
AntlerForce authored Sep 17, 2024
2 parents d791bde + 37f0f51 commit faffd12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions LuaMenu/widgets/gui_modoptions_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ local function ProcessBoolOption(data, index)
align = "left",
caption = data.name,
objectOverrideFont =
(checked and modoptionDefaults[data.key] == "1" or not checked and modoptionDefaults[data.key]) and WG.Chobby.Configuration:GetFont(2)
(checked and "1" or "0") == modoptionDefaults[data.key] and WG.Chobby.Configuration:GetFont(2)
or WG.Chobby.Configuration:GetFont(2, "Changed2", {color = MARKED_AS_CHANGED_COLOR}),
tooltip = data.desc,
}
Expand All @@ -285,9 +285,6 @@ local function ProcessBoolOption(data, index)
boxsize = 25,
caption = "",
checked = checked,
objectOverrideFont =
(checked and modoptionDefaults[data.key] == "1" or not checked and modoptionDefaults[data.key]) and WG.Chobby.Configuration:GetFont(2)
or WG.Chobby.Configuration:GetFont(2, "Changed2", {color = MARKED_AS_CHANGED_COLOR}),
tooltip = data.desc,
OnChange =
(data.unlock or data.lock) and { function (obj, newState)
Expand Down

0 comments on commit faffd12

Please sign in to comment.