Fix auto-play not working with user scripts

This commit is contained in:
stax76
2022-05-19 23:17:23 +02:00
parent 229ace708d
commit bc0fc2a29d
6 changed files with 37 additions and 30 deletions

View File

@@ -515,12 +515,7 @@ namespace mpvnet
CommandPaletteItem item = new CommandPaletteItem()
{
Text = file.FileName(),
Action = () => {
Core.SetPropertyInt("playlist-pos", index);
if (App.AutoPlay && Core.Paused)
Core.SetPropertyBool("pause", false);
}
Action = () => Core.SetPropertyInt("playlist-pos", index)
};
items.Add(item);