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.
 
 
 

30 lines
851 B

using System.Diagnostics;
using Avalonia.Input;
using Avalonia.Labs.Controls;
using StabilityMatrix.Avalonia.Controls;
using StabilityMatrix.Avalonia.ViewModels.PackageManager;
using StabilityMatrix.Core.Attributes;
namespace StabilityMatrix.Avalonia.Views.PackageManager;
[Singleton]
public partial class PackageInstallBrowserView : UserControlBase
{
public PackageInstallBrowserView()
{
InitializeComponent();
}
private void InputElement_OnKeyDown(object? sender, KeyEventArgs e)
{
if (e.Key == Key.Escape && DataContext is PackageInstallBrowserViewModel vm)
{
vm.ClearSearchQuery();
}
}
private void AsyncImage_OnFailed(object? sender, AsyncImage.AsyncImageFailedEventArgs e)
{
Debug.WriteLine($"Failed to load image: {e.ErrorException?.Message}");
}
}