From d97a5050107a6a856660074c1d8d28d39cfb2d70 Mon Sep 17 00:00:00 2001 From: Ionite Date: Fri, 1 Sep 2023 02:55:07 -0400 Subject: [PATCH] Move InferenceTextToImageView to Views.Inference --- StabilityMatrix.Avalonia/App.axaml.cs | 1 + .../InferenceTextToImageViewModel.cs | 2 +- .../InferenceTextToImageView.axaml | 2 +- .../InferenceTextToImageView.axaml.cs | 11 ++++++++++ .../Views/InferenceTextToImageView.axaml.cs | 21 ------------------- 5 files changed, 14 insertions(+), 23 deletions(-) rename StabilityMatrix.Avalonia/Views/{ => Inference}/InferenceTextToImageView.axaml (99%) create mode 100644 StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml.cs delete mode 100644 StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml.cs diff --git a/StabilityMatrix.Avalonia/App.axaml.cs b/StabilityMatrix.Avalonia/App.axaml.cs index adce620c..e974164d 100644 --- a/StabilityMatrix.Avalonia/App.axaml.cs +++ b/StabilityMatrix.Avalonia/App.axaml.cs @@ -68,6 +68,7 @@ using StabilityMatrix.Core.Services; using StabilityMatrix.Core.Updater; using Application = Avalonia.Application; using DrawingColor = System.Drawing.Color; +using InferenceTextToImageView = StabilityMatrix.Avalonia.Views.Inference.InferenceTextToImageView; using LogLevel = Microsoft.Extensions.Logging.LogLevel; namespace StabilityMatrix.Avalonia; diff --git a/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs index 9c90d074..559cbf34 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs @@ -20,7 +20,6 @@ using StabilityMatrix.Avalonia.Services; using StabilityMatrix.Avalonia.ViewModels.Base; using StabilityMatrix.Avalonia.Views; using StabilityMatrix.Core.Attributes; -using StabilityMatrix.Core.Exceptions; using StabilityMatrix.Core.Extensions; using StabilityMatrix.Core.Helper; using StabilityMatrix.Core.Inference; @@ -30,6 +29,7 @@ using StabilityMatrix.Core.Models.Api.Comfy.Nodes; using StabilityMatrix.Core.Models.Api.Comfy.NodeTypes; using StabilityMatrix.Core.Models.Api.Comfy.WebSocketData; using StabilityMatrix.Core.Services; +using InferenceTextToImageView = StabilityMatrix.Avalonia.Views.Inference.InferenceTextToImageView; #pragma warning disable CS0657 // Not a valid attribute location for this declaration diff --git a/StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml b/StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml similarity index 99% rename from StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml rename to StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml index 90627b02..a4a2627f 100644 --- a/StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml +++ b/StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml @@ -1,5 +1,5 @@