Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,9 @@
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;
}
}
Expand All @@ -301,6 +299,6 @@
return true;
}

private static string BuildLaunchArgument(string action)

Check warning on line 302 in src/UniGetUI.Avalonia/Infrastructure/WindowsAppNotificationBridge.cs

View workflow job for this annotation

GitHub Actions / Linux (Avalonia)

Private member 'WindowsAppNotificationBridge.BuildLaunchArgument' is unused (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0051)

Check warning on line 302 in src/UniGetUI.Avalonia/Infrastructure/WindowsAppNotificationBridge.cs

View workflow job for this annotation

GitHub Actions / Linux (NativeAOT)

Private member 'WindowsAppNotificationBridge.BuildLaunchArgument' is unused (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0051)
=> $"unigetui://{action}";
}
Loading