fix issue 188

This commit is contained in:
Frank Skare
2020-07-25 12:45:47 +02:00
parent 72f25a686e
commit 723005b28f
2 changed files with 9 additions and 4 deletions

View File

@@ -5,6 +5,8 @@
- Support Wheel_Left and Wheel_Right. (arnesacnussem)
- Default screen was changed from primary to OS default to start
from the same screen where the File Explorer window is located.
- When mpv.net was started maximized and next was invoked then the
window state was changed to normal instead of staying maximized.
5.4.8.2 Beta

View File

@@ -762,6 +762,9 @@ namespace mpvnet
{
base.OnShown(e);
if (WindowState == FormWindowState.Maximized)
core.set_property_bool("window-maximized", true);
if (core.GPUAPI == "vulkan")
core.ProcessCommandLine(false);
@@ -808,16 +811,16 @@ namespace mpvnet
{
if (WindowState == FormWindowState.Minimized)
{
core.set_property_string("window-minimized", "yes");
core.set_property_bool("window-minimized", true);
}
else if (WindowState == FormWindowState.Normal)
{
core.set_property_string("window-maximized", "no");
core.set_property_string("window-minimized", "no");
core.set_property_bool("window-maximized", false);
core.set_property_bool("window-minimized", false);
}
else if (WindowState == FormWindowState.Maximized)
{
core.set_property_string("window-maximized", "yes");
core.set_property_bool("window-maximized", true);
}
}
}