Skip to content

Commit

Permalink
Fix more hyperlink issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Aug 12, 2021
1 parent 7f3c8b1 commit d8fd0aa
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 7 deletions.
16 changes: 14 additions & 2 deletions ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,13 @@ public ICommand OpenWebSiteCommand
{
get
{
return _OpenWebSiteCommand ??= new DelegateCommand(() => Process.Start("www.wpinternals.net"));
return _OpenWebSiteCommand ??= new DelegateCommand(() =>
{
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = "www.wpinternals.net";
process.Start();
});
}
}

Expand All @@ -449,7 +455,13 @@ public ICommand DonateCommand
{
get
{
return _DonateCommand ??= new DelegateCommand(() => Process.Start("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VY8N7BCBT9CS4"));
return _DonateCommand ??= new DelegateCommand(() =>
{
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VY8N7BCBT9CS4";
process.Start();
});
}
}

Expand Down
5 changes: 4 additions & 1 deletion Views/About.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ private void HandleHyperlinkClick(object sender, RoutedEventArgs args)
{
if (args.Source is Hyperlink link)
{
Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}

Expand Down
6 changes: 5 additions & 1 deletion Views/BootRestoreResourcesView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
Expand Down Expand Up @@ -54,7 +55,10 @@ private void HandleHyperlinkClick(object sender, RoutedEventArgs args)
}
else
{
System.Diagnostics.Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion Views/FlashResourcesView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
Expand Down Expand Up @@ -48,7 +49,10 @@ private void HandleHyperlinkClick(object sender, RoutedEventArgs args)
}
else
{
System.Diagnostics.Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion Views/LumiaDownloadView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ private void HandleHyperlinkClick(object sender, RoutedEventArgs args)
}
else
{
Process.Start(link.NavigateUri.AbsoluteUri);
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion Views/LumiaUnlockRootTargetSelectionView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ private void HandleHyperlinkClick(object sender, RoutedEventArgs args)
}
else
{
Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
Expand Down

0 comments on commit d8fd0aa

Please sign in to comment.