bug fix for logo not shown on start
This commit is contained in:
10
Changelog.md
10
Changelog.md
@@ -4,11 +4,11 @@
|
|||||||
- bug fix for logo not shown on start
|
- bug fix for logo not shown on start
|
||||||
- osd-visibility.js script was removed because the OSC uses too much memory
|
- osd-visibility.js script was removed because the OSC uses too much memory
|
||||||
- youtube-dl was updated
|
- youtube-dl was updated
|
||||||
- in case mpv.net is started from a terminal it sets now the mpv property input-terminal to yes,
|
- libmpv was updated to shinchiro 2019-08-04
|
||||||
this means mpv.net will now receive input keys from the terminal
|
- in case mpv.net was started from a terminal it sets now the mpv property input-terminal to yes,
|
||||||
- command line processing was improved, certain properties didn't work, now they should work:
|
this means mpv.net will now receive and handle input keys from the terminal
|
||||||
(input-terminal, terminal, input-file, config, config-dir, input-conf,
|
- certain command line properties didn't work (input-terminal, terminal, input-file,
|
||||||
load-scripts, script, scripts, player-operation-mode)
|
config, config-dir, input-conf, load-scripts, script, scripts, player-operation-mode)
|
||||||
- the about dialog shows now the mpv version and build date
|
- the about dialog shows now the mpv version and build date
|
||||||
|
|
||||||
### 5.1
|
### 5.1
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ namespace mpvnet
|
|||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
|
||||||
|
if (mp.ConfigFolder == "") return;
|
||||||
|
|
||||||
string[] args = Environment.GetCommandLineArgs().Skip(1).ToArray();
|
string[] args = Environment.GetCommandLineArgs().Skip(1).ToArray();
|
||||||
|
|
||||||
if (args.Length == 2 && args[0] == "--reg-file-assoc")
|
if (args.Length == 2 && args[0] == "--reg-file-assoc")
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ public class TaskDialog<T> : TaskDialogNative, IDisposable
|
|||||||
public void AddCommandLink(string text, T value)
|
public void AddCommandLink(string text, T value)
|
||||||
{
|
{
|
||||||
int n = 1000 + IdValueDic.Count + 1;
|
int n = 1000 + IdValueDic.Count + 1;
|
||||||
IdValueDic[n] = value == null ? (T)(object)text : value;
|
IdValueDic[n] = value;
|
||||||
IdTextDic[n] = text;
|
IdTextDic[n] = text;
|
||||||
Buttons.Add(new TaskDialogNative.TASKDIALOG_BUTTON(n, text));
|
Buttons.Add(new TaskDialogNative.TASKDIALOG_BUTTON(n, text));
|
||||||
Config.dwFlags |= TaskDialogNative.TASKDIALOG_FLAGS.TDF_USE_COMMAND_LINKS;
|
Config.dwFlags |= TaskDialogNative.TASKDIALOG_FLAGS.TDF_USE_COMMAND_LINKS;
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ namespace mpvnet
|
|||||||
|
|
||||||
if (mp.GPUAPI != "vulkan") mp.VideoSizeAutoResetEvent.WaitOne(App.StartThreshold);
|
if (mp.GPUAPI != "vulkan") mp.VideoSizeAutoResetEvent.WaitOne(App.StartThreshold);
|
||||||
if (Height < FontHeight * 4) SetFormPosAndSize();
|
if (Height < FontHeight * 4) SetFormPosAndSize();
|
||||||
if (mp.get_property_int("playlist-count") == 0) mp.ShowLogo();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -508,6 +507,12 @@ namespace mpvnet
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnLoad(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnLoad(e);
|
||||||
|
if (mp.get_property_int("playlist-count") == 0) mp.ShowLogo();
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnShown(EventArgs e)
|
protected override void OnShown(EventArgs e)
|
||||||
{
|
{
|
||||||
base.OnShown(e);
|
base.OnShown(e);
|
||||||
|
|||||||
@@ -166,10 +166,15 @@ namespace mpvnet
|
|||||||
td.AddCommandLink(@"AppData\Roaming\mpv", appdataFolderMpv, appdataFolderMpv);
|
td.AddCommandLink(@"AppData\Roaming\mpv", appdataFolderMpv, appdataFolderMpv);
|
||||||
td.AddCommandLink("<startup>\\portable_config", portableFolder, portableFolder);
|
td.AddCommandLink("<startup>\\portable_config", portableFolder, portableFolder);
|
||||||
td.AddCommandLink("Choose custom folder", "custom");
|
td.AddCommandLink("Choose custom folder", "custom");
|
||||||
td.AllowCancel = false;
|
|
||||||
_ConfigFolder = td.Show();
|
_ConfigFolder = td.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_ConfigFolder == null)
|
||||||
|
{
|
||||||
|
_ConfigFolder = "";
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
if (_ConfigFolder == "custom")
|
if (_ConfigFolder == "custom")
|
||||||
{
|
{
|
||||||
using (var d = new WinForms.FolderBrowserDialog())
|
using (var d = new WinForms.FolderBrowserDialog())
|
||||||
|
|||||||
Reference in New Issue
Block a user