mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user