Fix another color thing.

This commit is contained in:
Ottermandias 2024-01-17 16:27:51 +01:00
parent 42aa4fb4a2
commit 4abae59974
2 changed files with 2 additions and 5 deletions

View file

@ -755,12 +755,9 @@ public class StateListener : IDisposable
break;
case StateChanged.Source.Pending:
state.BaseData.Parameters.Set(flag, newValue);
state[flag] = StateChanged.Source.Manual;
if (_config.UseAdvancedParameters)
{
model.ApplySingleParameterData(flag, state.ModelData.Parameters);
state[flag] = StateChanged.Source.Manual;
}
break;
}
}

View file

@ -404,7 +404,7 @@ public class StateManager(
foreach (var slot in CrestExtensions.AllRelevantSet.Where(design.DoApplyCrest))
_editor.ChangeCrest(state, slot, design.DesignData.Crest(slot), source, out _, key);
var paramSource = source is StateChanged.Source.Manual && redraw
var paramSource = source is StateChanged.Source.Manual
? StateChanged.Source.Pending
: source;