Browse Source

PreOutputActions support for ModuleApplyStepEventArgs

pull/629/head
Ionite 8 months ago
parent
commit
92d42b3c53
No known key found for this signature in database
  1. 10
      StabilityMatrix.Avalonia/Models/Inference/ModuleApplyStepEventArgs.cs

10
StabilityMatrix.Avalonia/Models/Inference/ModuleApplyStepEventArgs.cs

@ -28,6 +28,16 @@ public class ModuleApplyStepEventArgs : EventArgs
public List<(string SourcePath, string DestinationRelativePath)> FilesToTransfer { get; init; } = [];
public List<Action<ModuleApplyStepEventArgs>> PreOutputActions { get; init; } = [];
public void InvokeAllPreOutputActions()
{
foreach (var action in PreOutputActions)
{
action(this);
}
}
/// <summary>
/// Creates a new <see cref="ModuleApplyStepEventArgs"/> with the given <see cref="ComfyNodeBuilder"/>.
/// </summary>

Loading…
Cancel
Save