From 27dc98af2195622d3443cc048b3c856c5238b9f5 Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 2 Apr 2022 15:14:36 +0200 Subject: [PATCH] v5.8.0.0 --- docs/Changelog.md | 10 ++++++++-- docs/Manual.md | 7 ++++++- src/Misc/App.cs | 2 ++ src/Misc/CorePlayer.cs | 2 +- src/Properties/AssemblyInfo.cs | 4 ++-- src/Resources/editor_conf.txt | 10 ++++++++++ 6 files changed, 29 insertions(+), 6 deletions(-) diff --git a/docs/Changelog.md b/docs/Changelog.md index dfd40ce..20bd93d 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -1,4 +1,6 @@ +5.8.0.0 Beta (2022-04-02) + - Fix crash on Windows 7 systems without PowerShell. - Fix showing incorrect timestamps in About dialog of Store version. - Fix Store page showing non existant ARM and x86 support. @@ -7,12 +9,16 @@ by the text editor, so it's like everything else searchable. - Media Info isn't shown directly, instead the command palette shows several choices. The command palette can be bypassed - using the arguments: msgbox, editor, full, raw. + using the arguments: msgbox, editor, full, raw. + https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#show-media-info-flags - mpv.net specific commands, the command palette, auto-play property and various other things are documented in the manual. -- The action used for the right mouse button can be configured. +- The action used for the right mouse button can be configured. + https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#show-menu - Workaround not reproducible logo drawing crash. - Info command shows the length. +- New mpv.net specific option `show-logo` that allows to disable + the drawing of the blue mpv.net logo ontop of the native OSC logo. - MediaInfo 22.03 diff --git a/docs/Manual.md b/docs/Manual.md index e0fbd4f..b95b2c9 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -493,7 +493,7 @@ Available on Windows 10 or higher. **never** -#### ---dark-theme=\ +#### --dark-theme=\ Color theme used in dark mode. Default: dark @@ -505,6 +505,11 @@ Color theme used in light mode. Default: light [Color Themes](#color-theme) +#### --show-logo=\ + +Draws the blue mpv.net logo ontop of the native OSC logo. +Changes take effect after application restart. Default: yes + External Tools -------------- diff --git a/src/Misc/App.cs b/src/Misc/App.cs index 24fc65c..e79aecb 100644 --- a/src/Misc/App.cs +++ b/src/Misc/App.cs @@ -28,6 +28,7 @@ namespace mpvnet public static bool Queue { get; set; } public static bool RememberVolume { get; set; } = true; public static bool RememberWindowPosition { get; set; } + public static bool ShowLogo { get; set; } = true; public static int StartThreshold { get; set; } = 1500; public static int RecentCount { get; set; } = 15; @@ -246,6 +247,7 @@ namespace mpvnet case "queue": Queue = value == "yes"; return true; case "recent-count": RecentCount = value.ToInt(); return true; case "remember-volume": RememberVolume = value == "yes"; return true; + case "show-logo": ShowLogo = value == "yes"; return true; case "remember-window-position": RememberWindowPosition = value == "yes"; return true; case "start-size": StartSize = value; return true; case "start-threshold": StartThreshold = value.ToInt(); return true; diff --git a/src/Misc/CorePlayer.cs b/src/Misc/CorePlayer.cs index 68f76bb..134b10e 100644 --- a/src/Misc/CorePlayer.cs +++ b/src/Misc/CorePlayer.cs @@ -1330,7 +1330,7 @@ KP1 script-binding delete_current_file/confirm public void ShowLogo() { - if (MainForm.Instance == null || App.Settings.LogoCrash) + if (!App.ShowLogo || (MainForm.Instance == null || App.Settings.LogoCrash)) return; try diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 764d995..eb2c7f9 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("5.7.0.0")] -[assembly: AssemblyFileVersion("5.7.0.0")] +[assembly: AssemblyVersion("5.8.0.0")] +[assembly: AssemblyFileVersion("5.8.0.0")] diff --git a/src/Resources/editor_conf.txt b/src/Resources/editor_conf.txt index 51e1bbc..fe42277 100644 --- a/src/Resources/editor_conf.txt +++ b/src/Resources/editor_conf.txt @@ -681,3 +681,13 @@ file = mpvnet filter = UI url = https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#color-theme help = Color theme used in light mode.\nmpv.net must be restarted after a change.\nmpv.net specific option. Default: light + +[setting] +name = show-logo +file = mpvnet +default = yes +filter = UI +help = Draws the blue mpv.net logo ontop of the native OSC logo. + +option = yes +option = no