osc: fix thumbnails clearing on visibility change

currently hide_bar() bypasses set_visible when visibility was
changed to `never`, this can leave the thumbnail hanging.

instead of scattering disable_thumbnail() calls around, just
call set_visible(false) instead.

Fixes: 9ce79bcaa
This commit is contained in:
NRK authored and Kacper Michajłow committed 2026-06-04 00:18:47 +02:00
1 parent 31ee4f99e5
commit 048c5ec351
1 file changed
+1 -1
+1 -1
View File
@@ -2750,9 +2750,9 @@ end
local function hide_bar(label, visible_key, anitype_key, set_visible)
msg.trace("hide_" .. label)
if not state.enabled then
set_visible(false)
-- typically hide happens at render() from tick(), but now tick() is
-- no-op and won't render again to remove the osc, so do that manually.
state[visible_key] = false
render_wipe(state.osd)
elseif user_opts.fadeduration > 0 then
if state[visible_key] then