Skip to content

Commit

Permalink
- Fixed Clear button on clicky items
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 20, 2024
1 parent 3ec5184 commit e4b45da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = 'f6b5646 2024-02-06' }
return { commitId = '3ec5184 2024-02-19' }
2 changes: 2 additions & 0 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3462,7 +3462,9 @@ function Utils.RenderSettingsTable(settings, settingNames, defaults, category)
if nameLen > 0 then
Utils.Tooltip(settings[k])
end
ImGui.PopID()
ImGui.SameLine()
ImGui.PushID(k .. "__clear_btn")
if ImGui.SmallButton(ICONS.MD_CLEAR) then
if mq.TLO.Cursor() then
settings[k] = ""
Expand Down

0 comments on commit e4b45da

Please sign in to comment.