From dc7c822c70905148807e87b4c382378977f17eb2 Mon Sep 17 00:00:00 2001 From: tomasklaen Date: Fri, 6 Sep 2024 11:38:01 +0200 Subject: [PATCH] fix: `duration` changes not triggering updates ref #982 --- src/uosc/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uosc/main.lua b/src/uosc/main.lua index 6413bef6..a6e08fdb 100644 --- a/src/uosc/main.lua +++ b/src/uosc/main.lua @@ -451,8 +451,9 @@ function update_fullormaxed() end function update_duration() - state.duration = state._duration and ((state.rebase_start_time == false and state.start_time) + local duration = state._duration and ((state.rebase_start_time == false and state.start_time) and (state._duration + state.start_time) or state._duration) + set_state('duration', duration) update_human_times() end