Browse Source

Fix hires overrides

pull/333/head
Ionite 12 months ago
parent
commit
f761927e03
No known key found for this signature in database
  1. 14
      StabilityMatrix.Avalonia/ViewModels/Inference/Modules/ModuleBase.cs

14
StabilityMatrix.Avalonia/ViewModels/Inference/Modules/ModuleBase.cs

@ -20,9 +20,17 @@ public abstract class ModuleBase : StackExpanderViewModel, IComfyStep, IInputIma
/// <inheritdoc />
public void ApplyStep(ModuleApplyStepEventArgs e)
{
if (
(e.IsEnabledOverrides.TryGetValue(GetType(), out var isEnabledOverride) && !isEnabledOverride) || !IsEnabled
)
if (e.IsEnabledOverrides.TryGetValue(GetType(), out var isEnabledOverride))
{
if (isEnabledOverride)
{
OnApplyStep(e);
}
return;
}
if (!IsEnabled)
{
return;
}

Loading…
Cancel
Save