mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
fix<*>: fix .NET 4.6 Process.Start not open default browser issue
This commit is contained in:
parent
007690b000
commit
f54bf249dc
2 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,8 @@ namespace SourceGit.UI {
|
|||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OpenSource(object sender, RequestNavigateEventArgs e) {
|
||||
Process.Start(new ProcessStartInfo("cmd", $"/c start {e.Uri.AbsoluteUri}") { CreateNoWindow = true });
|
||||
Process.Start(e.Uri.AbsoluteUri);
|
||||
//Process.Start(new ProcessStartInfo("cmd", $"/c start {e.Uri.AbsoluteUri}") { CreateNoWindow = true });
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,8 @@ namespace SourceGit.UI {
|
|||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void Download(object sender, RoutedEventArgs e) {
|
||||
Process.Start(new ProcessStartInfo("cmd", $"/c start https://gitee.com/sourcegit/SourceGit/releases/{tag}") { CreateNoWindow = true });
|
||||
Process.Start($"https://gitee.com/sourcegit/SourceGit/releases/{tag}");
|
||||
//Process.Start(new ProcessStartInfo("cmd", $"/c start https://gitee.com/sourcegit/SourceGit/releases/{tag}") { CreateNoWindow = true });
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue