fix: crash when open external tool drop down menu

This commit is contained in:
leo 2024-04-06 15:01:07 +08:00
parent 111bf2966a
commit d873f21b6a
5 changed files with 12 additions and 13 deletions

View file

@ -41,7 +41,7 @@ namespace SourceGit.Native
editors.Add(new Models.ExternalEditor
{
Name = "Visual Studio Code",
Icon = new Uri("avares://SourceGit/Resources/ExternalToolIcons/vscode.png", UriKind.Absolute),
Icon = "vscode.png",
Executable = vscode,
OpenCmdArgs = "\"{0}\"",
});
@ -53,7 +53,7 @@ namespace SourceGit.Native
editors.Add(new Models.ExternalEditor
{
Name = "Visual Studio Code - Insiders",
Icon = new Uri("avares://SourceGit/Resources/ExternalToolIcons/vscode_insiders.png", UriKind.Absolute),
Icon = "vscode_insiders.png",
Executable = vscodeInsiders,
OpenCmdArgs = "\"{0}\"",
});
@ -65,7 +65,7 @@ namespace SourceGit.Native
editors.Add(new Models.ExternalEditor
{
Name = "JetBrains Fleet",
Icon = new Uri("avares://SourceGit/Resources/ExternalToolIcons/fleet.png", UriKind.Absolute),
Icon = "fleet.png",
Executable = fleet,
OpenCmdArgs = "\"{0}\"",
});