#214 Filename not being always shown in title bar.

This commit is contained in:
Frank Skare
2020-12-13 23:08:16 +01:00
parent 4d985c7b7c
commit 3968fa50f5
5 changed files with 13 additions and 10 deletions

View File

@@ -1164,7 +1164,12 @@ namespace mpvnet
if (!File.Exists(path) || get_property_int("playlist-count") != 1)
return;
List<string> files = Directory.GetFiles(Path.GetDirectoryName(path)).ToList();
string dir = Environment.CurrentDirectory;
if (path.Contains(Path.DirectorySeparatorChar))
dir = Path.GetDirectoryName(path);
List<string> files = Directory.GetFiles(dir).ToList();
files = files.Where(file =>
App.VideoTypes.Contains(file.Ext()) ||