mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
osc: reinit on playlist changes
This takes care of the corner case where the player is started with a single playlist entry so that the next/prev arrows are greyed out, but remain that way even after new elements are added to the playlist.
This commit is contained in:
parent
2cfa62e651
commit
f14f6fdb31
@ -1972,6 +1972,7 @@ validate_user_opts()
|
||||
|
||||
mp.register_event("start-file", request_init)
|
||||
mp.register_event("tracks-changed", request_init)
|
||||
mp.observe_property("playlist", nil, request_init)
|
||||
|
||||
mp.register_script_message("enable-osc", function() enable_osc(true) end)
|
||||
mp.register_script_message("disable-osc", function() enable_osc(false) end)
|
||||
|
Loading…
Reference in New Issue
Block a user