Skip to content

Commit

Permalink
fix: duration changes not triggering updates
Browse files Browse the repository at this point in the history
ref #982
  • Loading branch information
tomasklaen committed Sep 6, 2024
1 parent a9938c2 commit dc7c822
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uosc/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc7c822

Please sign in to comment.