fixed history being written even when history file wasn't created prior

This commit is contained in:
Frank Skare
2019-08-28 09:36:10 +02:00
parent a37cbef8a8
commit b07901485e
6 changed files with 11 additions and 11 deletions

View File

@@ -375,7 +375,7 @@ namespace mpvnet
BeginInvoke(new Action(() => {
if (path.Contains("://"))
Text = path + " - mpv.net " + Application.ProductVersion;
else if (File.Exists(path))
else if (path.Contains(":\\") || path.StartsWith("\\\\"))
Text = path.FileName() + " - mpv.net " + Application.ProductVersion;
else
Text = "mpv.net " + Application.ProductVersion;