fix<*>: open explore exception on .NET 5.0

This commit is contained in:
leo 2020-11-17 12:41:51 +08:00
parent 24b175c331
commit 1a719a464e
3 changed files with 4 additions and 4 deletions

View file

@ -336,7 +336,7 @@ namespace SourceGit.UI {
} }
private void OpenExplorer(object sender, RoutedEventArgs e) { private void OpenExplorer(object sender, RoutedEventArgs e) {
Process.Start(repo.Path); Process.Start("explorer", repo.Path);
} }
private void OpenTerminal(object sender, RoutedEventArgs e) { private void OpenTerminal(object sender, RoutedEventArgs e) {

View file

@ -102,7 +102,7 @@ namespace SourceGit.UI {
var explore = new MenuItem(); var explore = new MenuItem();
explore.Header = "Open Container Folder"; explore.Header = "Open Container Folder";
explore.Click += (o, ev) => { explore.Click += (o, ev) => {
Process.Start(repo.Path); Process.Start("explorer", repo.Path);
ev.Handled = true; ev.Handled = true;
}; };
@ -303,7 +303,7 @@ namespace SourceGit.UI {
var explore = new MenuItem(); var explore = new MenuItem();
explore.Header = "Open Container Folder"; explore.Header = "Open Container Folder";
explore.Click += (o, ev) => { explore.Click += (o, ev) => {
Process.Start(node.Id); Process.Start("explorer", node.Id);
ev.Handled = true; ev.Handled = true;
}; };

View file

@ -226,7 +226,7 @@ namespace SourceGit.UI {
explore.Header = "Reveal in File Explorer"; explore.Header = "Reveal in File Explorer";
explore.Click += (o, e) => { explore.Click += (o, e) => {
if (node.IsFile) Process.Start("explorer", $"/select,{path}"); if (node.IsFile) Process.Start("explorer", $"/select,{path}");
else Process.Start(path); else Process.Start("explorer", path);
e.Handled = true; e.Handled = true;
}; };