From bfa6b46247128ce282fabf68d6d46001d7be4020 Mon Sep 17 00:00:00 2001 From: Bauumm Date: Fri, 26 Jan 2024 16:37:57 +0100 Subject: [PATCH] fix fps limit setting not restoring unlimited properly --- ui/overlay/settings/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/overlay/settings/init.lua b/ui/overlay/settings/init.lua index 18a4b66..2ee664b 100644 --- a/ui/overlay/settings/init.lua +++ b/ui/overlay/settings/init.lua @@ -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)