fix: 超链接点击报错

This commit is contained in:
枫雨
2023-09-13 15:12:01 +08:00
committed by uye
parent 7e19caa2f6
commit 0a9efad6a1
2 changed files with 2 additions and 2 deletions

View File

@@ -473,7 +473,7 @@ namespace MaaWpfGui.ViewModels.UI
{
if (!string.IsNullOrWhiteSpace(UpdateUrl))
{
Process.Start(UpdateUrl);
Process.Start(new ProcessStartInfo(UpdateUrl) { UseShellExecute = true });
}
});
_ = Execute.OnUIThreadAsync(() =>

View File

@@ -110,7 +110,7 @@ namespace MaaWpfGui.Views.UI
private void Hyperlink_OnClick(object sender, RoutedEventArgs e)
{
Process.Start(((Hyperlink)sender).NavigateUri.AbsoluteUri);
Process.Start(new ProcessStartInfo(((Hyperlink)sender).NavigateUri.AbsoluteUri) { UseShellExecute = true });
}
private void CopyToClipboard()