This commit is contained in:
stax76
2025-09-12 05:11:55 +02:00
parent 3812f3031c
commit cc1e4bc9f8
7 changed files with 21 additions and 72 deletions

View File

@@ -32,7 +32,6 @@ public class GuiCommand
{
["add-to-path"] = args => AddToPath(),
["edit-conf-file"] = EditCongFile,
["install-command-palette"] = args => InstallCommandPalette(),
["load-audio"] = LoadAudio,
["load-sub"] = LoadSubtitle,
["move-window"] = args => MoveWindow?.Invoke(args[0]),
@@ -165,8 +164,7 @@ public class GuiCommand
}
string header = BR +
"https://mpv.io/manual/master/#list-of-input-commands" + BR2 +
"https://github.com/stax76/mpv-scripts#command_palette" + BR;
"https://mpv.io/manual/master/#list-of-input-commands" + BR;
ShowTextWithEditor("Input Commands", header + sb.ToString());
}
@@ -276,24 +274,6 @@ public class GuiCommand
catch { }
}
void InstallCommandPalette()
{
if (Msg.ShowQuestion("Install command palette?") != MessageBoxResult.OK)
return;
try
{
Environment.SetEnvironmentVariable("MPV_CONFIG_DIR", Player.ConfigFolder);
using Process proc = new Process();
proc.StartInfo.FileName = "powershell";
proc.StartInfo.Arguments = "-executionpolicy bypass -nologo -noexit -noprofile -command \"irm https://raw.githubusercontent.com/stax76/mpv-scripts/refs/heads/main/powershell/command_palette_installer.ps1 | iex\"";
proc.Start();
}
catch
{
}
}
void StreamQuality()
{
int version = Player.GetPropertyInt("user-data/command-palette/version");

View File

@@ -10,9 +10,9 @@
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>mpv-icon.ico</ApplicationIcon>
<FileVersion>7.1.1.3</FileVersion>
<AssemblyVersion>7.1.1.3</AssemblyVersion>
<InformationalVersion>7.1.1.3</InformationalVersion>
<FileVersion>7.1.1.4</FileVersion>
<AssemblyVersion>7.1.1.4</AssemblyVersion>
<InformationalVersion>7.1.1.4</InformationalVersion>
</PropertyGroup>
<ItemGroup>