Browse Source

Enable image2image project type for creation

pull/333/head
Ionite 12 months ago
parent
commit
1ccb38b652
No known key found for this signature in database
  1. 5
      StabilityMatrix.Avalonia/Views/InferencePage.axaml
  2. 7
      StabilityMatrix.Avalonia/Views/InferencePage.axaml.cs

5
StabilityMatrix.Avalonia/Views/InferencePage.axaml

@ -47,11 +47,10 @@
Label="Text to Image"
ToolTip.Tip="Text to Image" />
<ui:CommandBarButton
Click="AddTabMenu_ImageToImage_OnClick"
IconSource="ImageCopy"
IsEnabled="False"
IsVisible="False"
Label="Image to Image"
ToolTip.Tip="Not yet implemented, coming soon!" />
ToolTip.Tip="Image to Image" />
<ui:CommandBarButton
IconSource="ImageEdit"
IsEnabled="False"

7
StabilityMatrix.Avalonia/Views/InferencePage.axaml.cs

@ -60,4 +60,11 @@ public partial class InferencePage : UserControlBase
{
(DataContext as InferenceViewModel)!.AddTabCommand.Execute(InferenceProjectType.Upscale);
}
private void AddTabMenu_ImageToImage_OnClick(object? sender, RoutedEventArgs e)
{
(DataContext as InferenceViewModel)!.AddTabCommand.Execute(
InferenceProjectType.ImageToImage
);
}
}

Loading…
Cancel
Save