fix issue 188
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
- Support Wheel_Left and Wheel_Right. (arnesacnussem)
|
- Support Wheel_Left and Wheel_Right. (arnesacnussem)
|
||||||
- Default screen was changed from primary to OS default to start
|
- Default screen was changed from primary to OS default to start
|
||||||
from the same screen where the File Explorer window is located.
|
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
|
5.4.8.2 Beta
|
||||||
|
|||||||
@@ -762,6 +762,9 @@ namespace mpvnet
|
|||||||
{
|
{
|
||||||
base.OnShown(e);
|
base.OnShown(e);
|
||||||
|
|
||||||
|
if (WindowState == FormWindowState.Maximized)
|
||||||
|
core.set_property_bool("window-maximized", true);
|
||||||
|
|
||||||
if (core.GPUAPI == "vulkan")
|
if (core.GPUAPI == "vulkan")
|
||||||
core.ProcessCommandLine(false);
|
core.ProcessCommandLine(false);
|
||||||
|
|
||||||
@@ -808,16 +811,16 @@ namespace mpvnet
|
|||||||
{
|
{
|
||||||
if (WindowState == FormWindowState.Minimized)
|
if (WindowState == FormWindowState.Minimized)
|
||||||
{
|
{
|
||||||
core.set_property_string("window-minimized", "yes");
|
core.set_property_bool("window-minimized", true);
|
||||||
}
|
}
|
||||||
else if (WindowState == FormWindowState.Normal)
|
else if (WindowState == FormWindowState.Normal)
|
||||||
{
|
{
|
||||||
core.set_property_string("window-maximized", "no");
|
core.set_property_bool("window-maximized", false);
|
||||||
core.set_property_string("window-minimized", "no");
|
core.set_property_bool("window-minimized", false);
|
||||||
}
|
}
|
||||||
else if (WindowState == FormWindowState.Maximized)
|
else if (WindowState == FormWindowState.Maximized)
|
||||||
{
|
{
|
||||||
core.set_property_string("window-maximized", "yes");
|
core.set_property_bool("window-maximized", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user