Inline local functions; simplify URL handling; localize OutputPathTooltip

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-24 17:13:16 +00:00
parent 2b20bf97e3
commit 2efddb3b2c
9 changed files with 146 additions and 103 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using System.Windows.Input;
using Avalonia;
using Avalonia.Controls;
@@ -58,11 +57,7 @@ public partial class HyperLink : UserControl
if (Command.CanExecute(CommandParameter))
Command.Execute(CommandParameter);
}
else if (
!string.IsNullOrWhiteSpace(Url) && Uri.TryCreate(Url, UriKind.Absolute, out var uri)
)
{
Process.StartShellExecute(uri.AbsoluteUri);
}
else if (!string.IsNullOrWhiteSpace(Url))
Process.StartShellExecute(Url);
}
}