code_style: simpfy FindTerminal

* [macOS] should return `string.Empty` when failed to find terminal path
* [Linux] use `shell.Type` instead of `shell.Exec` to skip custom terminal detection
This commit is contained in:
leo 2024-09-18 15:19:24 +08:00
parent 9c6745c271
commit 69b39dac6c
No known key found for this signature in database
2 changed files with 3 additions and 12 deletions

View file

@ -34,7 +34,7 @@ namespace SourceGit.Native
return "iTerm";
}
return "InvalidTerminal";
return string.Empty;
}
public List<Models.ExternalTool> FindExternalTools()