enhance: make sure executable file of external tool is still available before opening it (#2019)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-12-30 16:14:41 +08:00
parent 9877bac13d
commit 9dc0d94aad

View File

@@ -36,6 +36,10 @@ namespace SourceGit.Models
public void Open(string path)
{
// The executable file may be removed after the tool list is loaded (once time on startup).
if (!File.Exists(ExecFile))
return;
Process.Start(new ProcessStartInfo()
{
FileName = ExecFile,