mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user