mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
为运行指令提供双容错
This commit is contained in:
parent
47857aab8f
commit
906d32a14e
@ -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("://"))
|
||||
|
Loading…
Reference in New Issue
Block a user