From 3cba5ed18f5cdd5af8cd34c6a317af7d9679a1ca Mon Sep 17 00:00:00 2001 From: GabrielDuf Date: Wed, 15 Jul 2026 15:22:15 -0400 Subject: [PATCH] Fix app auto-navigating to Updates when a toast is shown --- .../Infrastructure/WindowsAppNotificationBridge.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/UniGetUI.Avalonia/Infrastructure/WindowsAppNotificationBridge.cs b/src/UniGetUI.Avalonia/Infrastructure/WindowsAppNotificationBridge.cs index 9bfe70a953..288fa36640 100644 --- a/src/UniGetUI.Avalonia/Infrastructure/WindowsAppNotificationBridge.cs +++ b/src/UniGetUI.Avalonia/Infrastructure/WindowsAppNotificationBridge.cs @@ -275,11 +275,9 @@ private static bool Show( string launchArg = BuildLaunchArgument(launchAction); if (Win32ToastNotifier.Show(title, message, launchArg)) { - // When the app is already running, raise activation immediately so the - // in-process handler fires; a subsequent toast click routes through the - // single-instance redirector on launch via TryParseToastLaunchArgument. - if (MainWindow.Instance is not null) - RaiseActivation(launchAction); + // Show-only: the launch action fires only when the user clicks the toast, routed via + // the unigetui:// deep-link through the single-instance handler. Raising it on show + // would navigate the app on its own (e.g. yank to Updates the moment updates load). return true; } }