From 3caf4f2cb3ba3f5ec4be41b013dd817d5d2b587e Mon Sep 17 00:00:00 2001 From: stax76 Date: Mon, 15 Jul 2024 08:01:21 +0200 Subject: [PATCH] Bindings and menu item fix --- docs/changelog.md | 1 + src/MpvNet.Windows/GuiCommand.cs | 2 +- src/MpvNet/InputHelp.cs | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index d20240a..e22387f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -8,6 +8,7 @@ https://github.com/mpv-player/mpv/blob/master/player/lua/select.lua - The helper script 'Tools\update-mpv-and-libmpv.ps1' no longer uses command line arguments, it uses now the Path environment variable to find mpv and mpv.net. +- Actions/Workflow/Auto builds have been fixed. # v7.1.1.0 (2024-02-03) diff --git a/src/MpvNet.Windows/GuiCommand.cs b/src/MpvNet.Windows/GuiCommand.cs index 4277159..bece73a 100644 --- a/src/MpvNet.Windows/GuiCommand.cs +++ b/src/MpvNet.Windows/GuiCommand.cs @@ -43,7 +43,6 @@ public class GuiCommand ["remove-from-path"] = args => RemoveFromPath(), ["scale-window"] = args => ScaleWindow?.Invoke(float.Parse(args[0], CultureInfo.InvariantCulture)), ["show-about"] = args => ShowDialog(typeof(AboutWindow)), - ["show-audio-devices"] = args => Msg.ShowInfo(Player.GetPropertyOsdString("audio-device-list")), ["show-bindings"] = args => ShowBindings(), ["show-commands"] = args => ShowCommands(), ["show-conf-editor"] = args => ShowDialog(typeof(ConfWindow)), @@ -68,6 +67,7 @@ public class GuiCommand ["show-command-palette"] = args => Player.Command("script-binding select/select-binding"), // deprecated ["show-audio-tracks"] = args => Player.Command("script-binding select/select-aid"), // deprecated ["show-subtitle-tracks"] = args => Player.Command("script-binding select/select-sid"), // deprecated + ["show-audio-devices"] = args => Player.Command("script-binding select/select-audio-device"), // deprecated }; void ShowDialog(Type winType) diff --git a/src/MpvNet/InputHelp.cs b/src/MpvNet/InputHelp.cs index 06d64cc..c52d682 100644 --- a/src/MpvNet/InputHelp.cs +++ b/src/MpvNet/InputHelp.cs @@ -136,7 +136,6 @@ public static class InputHelp new (_("View") + " > " + _("On Screen Menu"), _("Audio Devices"), "script-binding select/select-audio-device", "Alt+d"), new (_("View") + " > " + _("More"), _("Show Console"), "script-binding console/enable", "`"), - new (_("View") + " > " + _("More"), _("Show Audio Devices"), "script-message-to mpvnet show-audio-devices"), new (_("View") + " > " + _("More"), _("Show Commands"), "script-message-to mpvnet show-commands", "F2"), new (_("View") + " > " + _("More"), _("Show Bindings"), "script-message-to mpvnet show-bindings"), new (_("View") + " > " + _("More"), _("Show Keys"), "script-message-to mpvnet show-keys", "Alt+k"),