Skip to content

Commit

Permalink
Modoptions: Mark as changed fix: default bool on
Browse files Browse the repository at this point in the history
  • Loading branch information
robertthepie committed Sep 17, 2024
1 parent d791bde commit 37f0f51
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 37f0f51

Please sign in to comment.