Fixed an issue affecting parsing the required runstate to edit a setting.

This commit is contained in:
MapleWheels
2026-02-06 14:36:33 -05:00
committed by Maplewheels
parent 771e73a798
commit fa340e91de
2 changed files with 4 additions and 4 deletions
@@ -64,7 +64,7 @@ public class SettingsEntryRegistrar : ISettingsRegistrationProvider
Func<OneOf<string, XElement, object>, bool> valueChangePredicate)
{
return !info.Element.GetAttributeBool("ReadOnly", false)
|| !info.EditableStates.HasFlag(_infoProvider?.CurrentRunState ?? RunState.Running)
|| info.EditableStates < _infoProvider.CurrentRunState
|| valueChangePredicate is null
|| valueChangePredicate.Invoke(newValue);
}