From 048c5ec35137b7c6411c551470b14cf0aa2ca42e Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 22 May 2026 02:37:22 +0000 Subject: [PATCH] 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 --- player/lua/osc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 1ee42d0afc..c348c1046f 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -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