From 906d32a14e49f2189779cec1c12a68b37c810211 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Thu, 22 Feb 2024 22:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E8=BF=90=E8=A1=8C=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=8F=8C=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 2d4c196..f26fcb5 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -335,9 +335,16 @@ namespace VPet_Simulator.Windows startInfo.UseShellExecute = false; Process.Start(startInfo); } - catch (Exception e) + catch { - MessageBoxX.Show("快捷键运行失败:无法运行指定内容".Translate() + '\n' + e.Message); + try + { + Process.Start(content); + } + catch (Exception e) + { + MessageBoxX.Show("快捷键运行失败:无法运行指定内容".Translate() + '\n' + e.Message); + } } } else if (content.Contains("://"))