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 /> /// <inheritdoc />
public void ApplyStep(ModuleApplyStepEventArgs e) public void ApplyStep(ModuleApplyStepEventArgs e)
{ {
if ( if (e.IsEnabledOverrides.TryGetValue(GetType(), out var isEnabledOverride))
(e.IsEnabledOverrides.TryGetValue(GetType(), out var isEnabledOverride) && !isEnabledOverride) || !IsEnabled {
) if (isEnabledOverride)
{
OnApplyStep(e);
}
return;
}
if (!IsEnabled)
{ {
return; return;
} }

Loading…
Cancel
Save