This commit is contained in:
Frank Skare
2019-07-27 01:17:25 +02:00
parent 9d37e67901
commit 8430842679
23 changed files with 283 additions and 542 deletions

View File

@@ -9,6 +9,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
namespace mpvnet
{
@@ -366,7 +367,7 @@ namespace mpvnet
string path = mp.get_property_string("path");
BeginInvoke(new Action(() => {
if (File.Exists(path) || path.Contains("://"))
Text = Path.GetFileName(path) + " - mpv.net " + Application.ProductVersion;
Text = PathHelp.GetFileName(path) + " - mpv.net " + Application.ProductVersion;
else
Text = "mpv.net " + Application.ProductVersion;
}));
@@ -533,6 +534,8 @@ namespace mpvnet
CheckClipboardForURL();
Cursor.Position = new Point(Cursor.Position.X + 1, Cursor.Position.Y);
WasShown = true;
Task.Run(() => { mp.LoadScripts(); });
Task.Run(() => { mp.Extension = new Extension(); });
}
protected override void OnActivated(EventArgs e)