mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
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:
parent
9c6745c271
commit
69b39dac6c
2 changed files with 3 additions and 12 deletions
|
@ -34,7 +34,7 @@ namespace SourceGit.Native
|
|||
return "iTerm";
|
||||
}
|
||||
|
||||
return "InvalidTerminal";
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
public List<Models.ExternalTool> FindExternalTools()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue