Ionite
12 months ago
committed by
GitHub
8 changed files with 111 additions and 23 deletions
@ -0,0 +1,19 @@
|
||||
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) |
||||
); |
||||
} |
Loading…
Reference in new issue