mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix<*>: open explore exception on .NET 5.0
This commit is contained in:
parent
24b175c331
commit
1a719a464e
3 changed files with 4 additions and 4 deletions
|
@ -336,7 +336,7 @@ namespace SourceGit.UI {
|
|||
}
|
||||
|
||||
private void OpenExplorer(object sender, RoutedEventArgs e) {
|
||||
Process.Start(repo.Path);
|
||||
Process.Start("explorer", repo.Path);
|
||||
}
|
||||
|
||||
private void OpenTerminal(object sender, RoutedEventArgs e) {
|
||||
|
|
|
@ -102,7 +102,7 @@ namespace SourceGit.UI {
|
|||
var explore = new MenuItem();
|
||||
explore.Header = "Open Container Folder";
|
||||
explore.Click += (o, ev) => {
|
||||
Process.Start(repo.Path);
|
||||
Process.Start("explorer", repo.Path);
|
||||
ev.Handled = true;
|
||||
};
|
||||
|
||||
|
@ -303,7 +303,7 @@ namespace SourceGit.UI {
|
|||
var explore = new MenuItem();
|
||||
explore.Header = "Open Container Folder";
|
||||
explore.Click += (o, ev) => {
|
||||
Process.Start(node.Id);
|
||||
Process.Start("explorer", node.Id);
|
||||
ev.Handled = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ namespace SourceGit.UI {
|
|||
explore.Header = "Reveal in File Explorer";
|
||||
explore.Click += (o, e) => {
|
||||
if (node.IsFile) Process.Start("explorer", $"/select,{path}");
|
||||
else Process.Start(path);
|
||||
else Process.Start("explorer", path);
|
||||
e.Handled = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue