From 682903912af407fd481a6838d2f227c22f1cd423 Mon Sep 17 00:00:00 2001 From: Arno Welzel Date: Wed, 1 Jan 2025 15:21:44 +0100 Subject: [PATCH 1/2] Fix handling of URL navigation in the "About" dialog. Closes #3 --- Desktop/SharpManager/Views/About.xaml.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Desktop/SharpManager/Views/About.xaml.cs b/Desktop/SharpManager/Views/About.xaml.cs index b4cad2e..b3fa0bc 100644 --- a/Desktop/SharpManager/Views/About.xaml.cs +++ b/Desktop/SharpManager/Views/About.xaml.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; +using System.Security.Policy; using System.Text; using System.Threading.Tasks; using System.Windows; @@ -33,7 +35,12 @@ public About() /// The instance containing the event data. private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) { - System.Diagnostics.Process.Start(e.Uri.ToString()); + System.Diagnostics.Process.Start( + new ProcessStartInfo(e.Uri.ToString()) + { + UseShellExecute = true + } + ); } private void Window_SourceInitialized(object sender, EventArgs e) From ab27242bb2f5d9bea8ef937989d48b5e02229ce6 Mon Sep 17 00:00:00 2001 From: Arno Welzel Date: Wed, 1 Jan 2025 15:51:02 +0100 Subject: [PATCH 2/2] Remove unnecessary namespace prefix. --- Desktop/SharpManager/Views/About.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Desktop/SharpManager/Views/About.xaml.cs b/Desktop/SharpManager/Views/About.xaml.cs index b3fa0bc..cc95d78 100644 --- a/Desktop/SharpManager/Views/About.xaml.cs +++ b/Desktop/SharpManager/Views/About.xaml.cs @@ -35,7 +35,7 @@ public About() /// The instance containing the event data. private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) { - System.Diagnostics.Process.Start( + Process.Start( new ProcessStartInfo(e.Uri.ToString()) { UseShellExecute = true