osc.lua: hide immediately without animation for select.lua

Requested by llyyr.
This commit is contained in:
Guido Cella 2024-10-28 22:12:27 +01:00 committed by Kacper Michajłow
parent bf3382b083
commit cb8e3ba959
1 changed files with 1 additions and 1 deletions

View File

@ -2738,7 +2738,7 @@ mp.register_script_message("osc-visibility", visibility_mode)
mp.register_script_message("osc-show", show_osc)
mp.register_script_message("osc-hide", function ()
if user_opts.visibility == "auto" then
hide_osc()
osc_visible(false)
end
end)
mp.add_key_binding(nil, "visibility", function() visibility_mode("cycle") end)