long file names work now even if not enabled by the OS

This commit is contained in:
Frank Skare
2019-08-21 17:21:04 +02:00
parent 8debcc171c
commit a37cbef8a8
3 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
###
- added new setting to start with maximized window
- long file names work now even if not enabled by the OS
### 5.3

View File

@@ -45,7 +45,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(288F, 288F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.Color.Black;
this.ClientSize = new System.Drawing.Size(668, 345);
this.ClientSize = new System.Drawing.Size(348, 0);
this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);

View File

@@ -622,7 +622,7 @@ namespace mpvnet
foreach (string i in args)
{
if (!i.StartsWith("--") && (i == "-" || i.Contains("://") || File.Exists(i)))
if (!i.StartsWith("--") && (i == "-" || i.Contains("://") || i.Contains(":\\")))
{
files.Add(i);
if (i.Contains("://")) RegHelp.SetObject(App.RegPath, "LastURL", i);