Skip to content

Commit

Permalink
Removed new launcher message when debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
leMicin committed Dec 29, 2024
1 parent ac5de26 commit 31b2d57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Sidekick.Common.Updater/Components/Update.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@page "/update"
@page "/"
@using System.Diagnostics
@using Sidekick.Common.Updater
@using Sidekick.Common.Browser
@using Sidekick.Common.Platform
Expand Down Expand Up @@ -82,6 +83,12 @@
}
catch (Exception ex)
{
if (Debugger.IsAttached)
{
Continue();
return;
}

if (ex.Message == "Cannot perform this operation in an application which is not installed.")
{
NewLauncher = true;
Expand Down

0 comments on commit 31b2d57

Please sign in to comment.