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.
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using StabilityMatrix.Avalonia.Diagnostics.LogViewer.Core.ViewModels;
|
|
|
|
|
|
|
|
namespace StabilityMatrix.Avalonia.Diagnostics.ViewModels;
|
|
|
|
|
|
|
|
public class LogWindowViewModel
|
|
|
|
{
|
|
|
|
public LogViewerControlViewModel LogViewer { get; }
|
|
|
|
|
|
|
|
public LogWindowViewModel(LogViewerControlViewModel logViewer)
|
|
|
|
{
|
|
|
|
LogViewer = logViewer;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static LogWindowViewModel FromServiceProvider(IServiceProvider services)
|
|
|
|
{
|
|
|
|
return new LogWindowViewModel(services.GetRequiredService<LogViewerControlViewModel>());
|
|
|
|
}
|
|
|
|
}
|