public PythonAppConfigs GetAppConfigs() { if (_configs == null) { _configs = new PythonAppConfigs(Location, () => { // We’re going to keep it in-memory for now /*if (_configs == null) return; * * foreach (var config in _configs) { * config.PropertyChanged -= OnConfigPropertyChanged; * } * * _configs = null;*/ }); _configs.ValueChanged += OnConfigsValueChanged; } return(_configs); }