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

Commit 87eba95

Browse files
authored
Merge pull request #37 from TheyCallMeHex/master
Corrected the logger classes in the ImageInpaint and ImageToImage views
2 parents 2e88e7b + cd06107 commit 87eba95

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

OnnxStack.UI/Views/ImageInpaint.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace OnnxStack.UI.Views
2525
/// </summary>
2626
public partial class ImageInpaint : UserControl, INavigatable, INotifyPropertyChanged
2727
{
28-
private readonly ILogger<TextToImageView> _logger;
28+
private readonly ILogger<ImageInpaint> _logger;
2929
private readonly IStableDiffusionService _stableDiffusionService;
3030

3131
private bool _hasResult;
@@ -52,7 +52,7 @@ public ImageInpaint()
5252
{
5353
if (!DesignerProperties.GetIsInDesignMode(this))
5454
{
55-
_logger = App.GetService<ILogger<TextToImageView>>();
55+
_logger = App.GetService<ILogger<ImageInpaint>>();
5656
_stableDiffusionService = App.GetService<IStableDiffusionService>();
5757
}
5858

OnnxStack.UI/Views/ImageToImage.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace OnnxStack.UI.Views
2626
/// </summary>
2727
public partial class ImageToImage : UserControl, INavigatable, INotifyPropertyChanged
2828
{
29-
private readonly ILogger<TextToImageView> _logger;
29+
private readonly ILogger<ImageToImage> _logger;
3030
private readonly IStableDiffusionService _stableDiffusionService;
3131

3232
private bool _hasResult;
@@ -51,7 +51,7 @@ public ImageToImage()
5151
{
5252
if (!DesignerProperties.GetIsInDesignMode(this))
5353
{
54-
_logger = App.GetService<ILogger<TextToImageView>>();
54+
_logger = App.GetService<ILogger<ImageToImage>>();
5555
_stableDiffusionService = App.GetService<IStableDiffusionService>();
5656
}
5757

0 commit comments

Comments
 (0)