This commit is contained in:
Frank Skare
2019-04-20 23:49:05 +02:00
parent a0e30ff982
commit 6fc0ebf9d5

View File

@@ -135,7 +135,7 @@ namespace mpvnet
foreach (var i in mp.Chapters) foreach (var i in mp.Chapters)
{ {
MenuItemEx mi = ContextMenu.Add("Navigate > Chapters > " + i.Key); MenuItemEx mi = ContextMenu.Add("Navigate > Chapters > " + i.Key);
mi.ShortcutKeyDisplayString = TimeSpan.FromSeconds(i.Value).ToString() + " "; mi.ShortcutKeyDisplayString = TimeSpan.FromSeconds(i.Value).ToString().Substring(0, 8) + " ";
mi.Action = () => { mp.commandv("seek", i.Value.ToString(CultureInfo.InvariantCulture), "absolute"); }; mi.Action = () => { mp.commandv("seek", i.Value.ToString(CultureInfo.InvariantCulture), "absolute"); };
} }
} }