AcManager.Controls.UserPresetsControl.SetChanged C# (CSharp) Method

SetChanged() private method

private SetChanged ( bool value = null ) : void
value bool
return void
        private void SetChanged(bool? value = null) {
            if (_presetable == null || Changed == value) return;
            
            if (value == true && _comboBox != null) {
                _comboBox.SelectedItem = null;
            }

            var key = $@"__userpresets_c_{_presetable.PresetableKey}";
            if (value.HasValue) {
                ValuesStorage.Set(key, value.Value);
            } else {
                value = ValuesStorage.GetBool(key);
            }
            
            SetValue(ChangedPropertyKey, value.Value);
        }