swap order of flush

This commit is contained in:
alice 2024-08-15 02:04:42 +02:00 committed by centau
parent 244dd46340
commit d341eff5c8
2 changed files with 15 additions and 5 deletions

View file

@ -16,8 +16,8 @@ local function batch(setter: () -> ())
local ok, err: string? = pcall(setter)
if not already_batching then
flags.batch = false
flush()
flags.batch = false
end
if not ok then throw(`error occured while batching updates: {err}`) end