mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
[OOBE]What's new: fix link click, opening url in browser (#23255)
This commit is contained in:
@@ -153,8 +153,11 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
|
|||||||
private void ReleaseNotesMarkdown_LinkClicked(object sender, LinkClickedEventArgs e)
|
private void ReleaseNotesMarkdown_LinkClicked(object sender, LinkClickedEventArgs e)
|
||||||
{
|
{
|
||||||
if (Uri.TryCreate(e.Link, UriKind.Absolute, out Uri link))
|
if (Uri.TryCreate(e.Link, UriKind.Absolute, out Uri link))
|
||||||
|
{
|
||||||
|
this.DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () =>
|
||||||
{
|
{
|
||||||
Process.Start(new ProcessStartInfo(link.ToString()) { UseShellExecute = true });
|
Process.Start(new ProcessStartInfo(link.ToString()) { UseShellExecute = true });
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user