Multi-Platform Package Manager for Stable Diffusion
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.
 
 
 

27 lines
684 B

using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using StabilityMatrix.Avalonia.ViewModels.Dialogs;
using StabilityMatrix.Core.Processes;
namespace StabilityMatrix.Avalonia.Views.Dialogs;
public partial class DownloadResourceDialog : UserControl
{
public DownloadResourceDialog()
{
InitializeComponent();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
private void LicenseButton_OnTapped(object? sender, TappedEventArgs e)
{
var url = ((DownloadResourceViewModel)DataContext!).Resource.LicenseUrl;
ProcessRunner.OpenUrl(url!.ToString());
}
}