You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
471 B
19 lines
471 B
using CommunityToolkit.Mvvm.Input; |
|
using StabilityMatrix.Core.Processes; |
|
|
|
namespace StabilityMatrix.Avalonia.Helpers; |
|
|
|
public static class IOCommands |
|
{ |
|
public static RelayCommand<string?> OpenUrlCommand { get; } = |
|
new( |
|
url => |
|
{ |
|
if (string.IsNullOrWhiteSpace(url)) |
|
return; |
|
|
|
ProcessRunner.OpenUrl(url); |
|
}, |
|
url => !string.IsNullOrWhiteSpace(url) |
|
); |
|
}
|
|
|