New options autofit-image and autofit-audio

This commit is contained in:
stax76
2022-06-08 10:16:40 +02:00
parent 2257af6294
commit 6337818dbc
7 changed files with 77 additions and 16 deletions

View File

@@ -146,7 +146,19 @@ namespace mpvnet
public string Path { get; set; } = "";
public string Command { get; set; } = "";
public string Display { get { return string.IsNullOrEmpty(Path) ? Command : Path; } }
public string Display {
get {
if (string.IsNullOrEmpty(Path))
{
if (Command.Length > 50)
return Command.Substring(0, 50) + "...";
return Command;
}
else
return Path;
}
}
public CommandItem() { }