bug fix for logo not shown on start

This commit is contained in:
Frank Skare
2019-08-06 01:49:51 +02:00
parent ad30dc5ae2
commit 954c014708
5 changed files with 20 additions and 8 deletions

View File

@@ -83,7 +83,6 @@ namespace mpvnet
if (mp.GPUAPI != "vulkan") mp.VideoSizeAutoResetEvent.WaitOne(App.StartThreshold);
if (Height < FontHeight * 4) SetFormPosAndSize();
if (mp.get_property_int("playlist-count") == 0) mp.ShowLogo();
}
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)
{
base.OnShown(e);