From 31b2d57d677ca5153a79efb0a7a7c01c2f2c882a Mon Sep 17 00:00:00 2001 From: leMicin Date: Sat, 28 Dec 2024 20:34:02 -0500 Subject: [PATCH] Removed new launcher message when debugging --- src/Sidekick.Common.Updater/Components/Update.razor | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Sidekick.Common.Updater/Components/Update.razor b/src/Sidekick.Common.Updater/Components/Update.razor index 572977b0..95b64be0 100644 --- a/src/Sidekick.Common.Updater/Components/Update.razor +++ b/src/Sidekick.Common.Updater/Components/Update.razor @@ -1,5 +1,6 @@ @page "/update" @page "/" +@using System.Diagnostics @using Sidekick.Common.Updater @using Sidekick.Common.Browser @using Sidekick.Common.Platform @@ -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;