From fb294c441d04c068a05fea4bbf1817e4675a638e Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 2 Jul 2022 10:19:19 +0200 Subject: [PATCH] 6.0.2.0 --- docs/Changelog.md | 5 +++++ src/Properties/AssemblyInfo.cs | 4 ++-- src/WinForms/MainForm.Designer.cs | 2 +- src/WinForms/MainForm.cs | 5 +++++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/Changelog.md b/docs/Changelog.md index a92c272..b137059 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -1,4 +1,9 @@ +# 6.0.2.0 (2022-07-02) + +- Fix main window shown collapsed when the player was started with full screen. + + # 6.0.1.0 (2022-06-30) - New tutorial: [Extending mpv and mpv.net via Lua scripting](https://github.com/stax76/mpv.net/wiki/Extending-mpv-and-mpv.net-via-Lua-scripting) diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 0e44f0d..280802c 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("6.0.1.0")] -[assembly: AssemblyFileVersion("6.0.1.0")] +[assembly: AssemblyVersion("6.0.2.0")] +[assembly: AssemblyFileVersion("6.0.2.0")] diff --git a/src/WinForms/MainForm.Designer.cs b/src/WinForms/MainForm.Designer.cs index 1813545..395dc61 100644 --- a/src/WinForms/MainForm.Designer.cs +++ b/src/WinForms/MainForm.Designer.cs @@ -50,7 +50,7 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(288F, 288F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.Color.Black; - this.ClientSize = new System.Drawing.Size(348, 0); + this.ClientSize = new System.Drawing.Size(857, 444); this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); diff --git a/src/WinForms/MainForm.cs b/src/WinForms/MainForm.cs index 2fdae94..17a1d7a 100644 --- a/src/WinForms/MainForm.cs +++ b/src/WinForms/MainForm.cs @@ -620,7 +620,12 @@ namespace mpvnet if (WasMaximized) WindowState = FormWindowState.Maximized; else + { WindowState = FormWindowState.Normal; + + if (!Core.WasInitialSizeSet) + SetFormPosAndSize(); + } if (Core.Border) FormBorderStyle = FormBorderStyle.Sizable;