refactor: load external tool's icon on startup

This commit is contained in:
leo 2024-05-17 12:01:29 +08:00
parent 0da067caa3
commit a976f007f5
3 changed files with 25 additions and 43 deletions

View file

@ -41,8 +41,6 @@ namespace SourceGit.Native
{
throw new Exception("Platform unsupported!!!");
}
ExternalTools = _backend.FindExternalTools();
}
public static Models.Shell GetShell()
@ -77,6 +75,11 @@ namespace SourceGit.Native
_backend.SetupApp(builder);
}
public static void SetupEnternalTools()
{
ExternalTools = _backend.FindExternalTools();
}
public static string FindGitExecutable()
{
return _backend.FindGitExecutable();