Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Corrected the logger classes in the ImageInpaint and ImageToImage views #37

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OnnxStack.UI/Views/ImageInpaint.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace OnnxStack.UI.Views
/// </summary>
public partial class ImageInpaint : UserControl, INavigatable, INotifyPropertyChanged
{
private readonly ILogger<TextToImageView> _logger;
private readonly ILogger<ImageInpaint> _logger;
private readonly IStableDiffusionService _stableDiffusionService;

private bool _hasResult;
Expand All @@ -52,7 +52,7 @@ public ImageInpaint()
{
if (!DesignerProperties.GetIsInDesignMode(this))
{
_logger = App.GetService<ILogger<TextToImageView>>();
_logger = App.GetService<ILogger<ImageInpaint>>();
_stableDiffusionService = App.GetService<IStableDiffusionService>();
}

Expand Down
4 changes: 2 additions & 2 deletions OnnxStack.UI/Views/ImageToImage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace OnnxStack.UI.Views
/// </summary>
public partial class ImageToImage : UserControl, INavigatable, INotifyPropertyChanged
{
private readonly ILogger<TextToImageView> _logger;
private readonly ILogger<ImageToImage> _logger;
private readonly IStableDiffusionService _stableDiffusionService;

private bool _hasResult;
Expand All @@ -51,7 +51,7 @@ public ImageToImage()
{
if (!DesignerProperties.GetIsInDesignMode(this))
{
_logger = App.GetService<ILogger<TextToImageView>>();
_logger = App.GetService<ILogger<ImageToImage>>();
_stableDiffusionService = App.GetService<IStableDiffusionService>();
}

Expand Down