Fix #445 chapters that are script created after the media file is loaded

This commit is contained in:
stax76
2022-06-25 13:07:17 +02:00
parent 023c1db417
commit 69a5ba4470
4 changed files with 26 additions and 28 deletions

View File

@@ -672,7 +672,7 @@ namespace mpvnet
public static void ShowChapters() => App.InvokeOnMainThread(() =>
{
var items = Core.Chapters.Select(i => new CommandPaletteItem(i.Title, i.TimeDisplay, () =>
var items = Core.GetChapters().Select(i => new CommandPaletteItem(i.Title, i.TimeDisplay, () =>
Core.CommandV("seek", i.Time.ToString(CultureInfo.InvariantCulture), "absolute")));
CommandPalette.Instance.SetItems(items);