增加跳转FFmpeg下载页面菜单命令

This commit is contained in:
ww-rm
2025-11-25 22:53:06 +08:00
parent c53a5a8332
commit 33d5595b41
5 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
<s:String x:Key="Str_Tool">Tools</s:String> <s:String x:Key="Str_Tool">Tools</s:String>
<s:String x:Key="Str_Download">Download</s:String> <s:String x:Key="Str_Download">Download</s:String>
<s:String x:Key="Str_Help">Help</s:String> <s:String x:Key="Str_Help">Help</s:String>
<s:String x:Key="Str_DownloadFFmpeg">Go to download FFmpeg</s:String>
<s:String x:Key="Str_Diagnostics">Diagnostics Info</s:String> <s:String x:Key="Str_Diagnostics">Diagnostics Info</s:String>
<s:String x:Key="Str_Abount">About</s:String> <s:String x:Key="Str_Abount">About</s:String>
<s:String x:Key="Str_Experiment">Experimental Features</s:String> <s:String x:Key="Str_Experiment">Experimental Features</s:String>

View File

@@ -6,6 +6,7 @@
<s:String x:Key="Str_Tool">ツール</s:String> <s:String x:Key="Str_Tool">ツール</s:String>
<s:String x:Key="Str_Download">ダウンロード</s:String> <s:String x:Key="Str_Download">ダウンロード</s:String>
<s:String x:Key="Str_Help">ヘルプ</s:String> <s:String x:Key="Str_Help">ヘルプ</s:String>
<s:String x:Key="Str_DownloadFFmpeg">FFmpeg をダウンロードしに行く</s:String>
<s:String x:Key="Str_Diagnostics">診断情報</s:String> <s:String x:Key="Str_Diagnostics">診断情報</s:String>
<s:String x:Key="Str_Abount">バージョン情報</s:String> <s:String x:Key="Str_Abount">バージョン情報</s:String>
<s:String x:Key="Str_Experiment">実験機能</s:String> <s:String x:Key="Str_Experiment">実験機能</s:String>

View File

@@ -6,6 +6,7 @@
<s:String x:Key="Str_Tool">工具</s:String> <s:String x:Key="Str_Tool">工具</s:String>
<s:String x:Key="Str_Download">下载</s:String> <s:String x:Key="Str_Download">下载</s:String>
<s:String x:Key="Str_Help">帮助</s:String> <s:String x:Key="Str_Help">帮助</s:String>
<s:String x:Key="Str_DownloadFFmpeg">前往下载 FFmpeg</s:String>
<s:String x:Key="Str_Diagnostics">诊断信息</s:String> <s:String x:Key="Str_Diagnostics">诊断信息</s:String>
<s:String x:Key="Str_Abount">关于</s:String> <s:String x:Key="Str_Abount">关于</s:String>
<s:String x:Key="Str_Experiment">实验性功能</s:String> <s:String x:Key="Str_Experiment">实验性功能</s:String>

View File

@@ -5,6 +5,7 @@ using SFMLRenderer;
using SpineViewer.Models; using SpineViewer.Models;
using SpineViewer.Services; using SpineViewer.Services;
using SpineViewer.Utils; using SpineViewer.Utils;
using System.Diagnostics;
using System.Windows; using System.Windows;
using System.Windows.Shell; using System.Windows.Shell;
@@ -163,6 +164,12 @@ namespace SpineViewer.ViewModels.MainWindow
JsonHelper.Serialize(Workspace, fileName); JsonHelper.Serialize(Workspace, fileName);
} }
/// <summary>
/// 打开 FFmpeg 下载页面
/// </summary>
public RelayCommand Cmd_DownloadFFmpeg => _cmd_DownloadFFmpeg ??= new(() => Process.Start(new ProcessStartInfo("https://ffmpeg.org/download.html") { UseShellExecute = true }));
private RelayCommand? _cmd_DownloadFFmpeg;
/// <summary> /// <summary>
/// 显示诊断信息对话框 /// 显示诊断信息对话框
/// </summary> /// </summary>

View File

@@ -62,8 +62,8 @@
<!--<MenuItem Header="{DynamicResource Str_Tool}"/>--> <!--<MenuItem Header="{DynamicResource Str_Tool}"/>-->
<!--<MenuItem Header="{DynamicResource Str_Download}"/>--> <!--<MenuItem Header="{DynamicResource Str_Download}"/>-->
<MenuItem Header="{DynamicResource Str_Help}"> <MenuItem Header="{DynamicResource Str_Help}">
<MenuItem Header="{DynamicResource Str_DownloadFFmpeg}" Command="{Binding Cmd_DownloadFFmpeg}"/>
<MenuItem Header="{DynamicResource Str_Diagnostics}" Command="{Binding Cmd_ShowDiagnosticsDialog}"/> <MenuItem Header="{DynamicResource Str_Diagnostics}" Command="{Binding Cmd_ShowDiagnosticsDialog}"/>
<Separator/>
<MenuItem Header="{DynamicResource Str_Abount}" Command="{Binding Cmd_ShowAboutDialog}"/> <MenuItem Header="{DynamicResource Str_Abount}" Command="{Binding Cmd_ShowAboutDialog}"/>
<MenuItem Header="{DynamicResource Str_Debug}" Click="DebugMenuItem_Click" Visibility="{Binding IsDebug, Mode=OneWay, Converter={StaticResource Boolean2VisibilityConverter}}"/> <MenuItem Header="{DynamicResource Str_Debug}" Click="DebugMenuItem_Click" Visibility="{Binding IsDebug, Mode=OneWay, Converter={StaticResource Boolean2VisibilityConverter}}"/>
</MenuItem> </MenuItem>