From 4abae59974cf80d9727c9f0a0e20ca84974767d2 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 17 Jan 2024 16:27:51 +0100 Subject: [PATCH] Fix another color thing. --- Glamourer/State/StateListener.cs | 5 +---- Glamourer/State/StateManager.cs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Glamourer/State/StateListener.cs b/Glamourer/State/StateListener.cs index dda3cd1..b90d835 100644 --- a/Glamourer/State/StateListener.cs +++ b/Glamourer/State/StateListener.cs @@ -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; } } diff --git a/Glamourer/State/StateManager.cs b/Glamourer/State/StateManager.cs index c506389..4f683b8 100644 --- a/Glamourer/State/StateManager.cs +++ b/Glamourer/State/StateManager.cs @@ -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;