Merge pull request #517 from Torben2000/feature/playlist-titles
Use item title in playlist command palette if set
This commit is contained in:
@@ -546,13 +546,16 @@ namespace mpvnet
|
||||
{
|
||||
int index = i;
|
||||
string file = Core.GetPropertyString($"playlist/{i}/filename");
|
||||
string title = Core.GetPropertyString($"playlist/{i}/title");
|
||||
|
||||
CommandPaletteItem item = new CommandPaletteItem()
|
||||
{
|
||||
Text = file.FileName(),
|
||||
Text = title,
|
||||
Action = () => Core.SetPropertyInt("playlist-pos", index)
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(item.Text))
|
||||
item.Text = file.FileName();
|
||||
if (string.IsNullOrEmpty(item.Text))
|
||||
item.Text = file;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user