Skip to content

Commit

Permalink
fix fps limit setting not restoring unlimited properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Jan 26, 2024
1 parent 970dddd commit bfa6b46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/overlay/settings/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ local function create_setting(name, property, value)
state = (state - property.min) * (steps - 1) / (property.max - property.min)
setter:set(state)
end
if property.name == "fps_limit" and value == 0 then
gui_setters[name](0)
end
end
elseif property.category == "Input" then
layout = input_setting:new(property)
Expand Down

0 comments on commit bfa6b46

Please sign in to comment.