Skip to content

Commit

Permalink
Fix crash opening web URL links (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 authored Apr 10, 2023
1 parent a9ff2ed commit ac41de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SerialLoops/Dialogs/UpdateAvailableDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void InitializeComponent()
updateOnCloseButton.Click += (s, e) => { PrepareUpdater(false); };

Button downloadButton = new() { Text = "Download From GitHub " };
downloadButton.Click += (s, e) => { Process.Start(_url); };
downloadButton.Click += (s, e) => { Process.Start(new ProcessStartInfo(_url) { UseShellExecute = true }); };

Button skipButton = new() { Text = "Skip Update" };
skipButton.Click += (sender, args) => Close();
Expand Down Expand Up @@ -86,7 +86,7 @@ private void InitializeComponent()
private StackLayout GetUpdatePreview()
{
LinkButton urlLink = new() { Text = "Download release from GitHub" };
urlLink.Click += (sender, args) => { Process.Start(_url); };
urlLink.Click += (sender, args) => { Process.Start(new ProcessStartInfo(_url) { UseShellExecute = true }); };

return new StackLayout
{
Expand Down

0 comments on commit ac41de9

Please sign in to comment.