[OOBE]What's new: fix link click, opening url in browser (#23255)

This commit is contained in:
Laszlo Nemeth 2023-01-16 16:18:04 +01:00 committed by GitHub
parent da45647a39
commit 047d5987c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,10 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
{
if (Uri.TryCreate(e.Link, UriKind.Absolute, out Uri link))
{
Process.Start(new ProcessStartInfo(link.ToString()) { UseShellExecute = true });
this.DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () =>
{
Process.Start(new ProcessStartInfo(link.ToString()) { UseShellExecute = true });
});
}
}
}