Added an explanation for using wxFileConfig in GetNewConfig()

This commit is contained in:
Maciej Suminski 2018-12-29 19:22:07 +01:00
parent e919ded35f
commit ad07b4a251
1 changed files with 1 additions and 0 deletions

View File

@ -254,6 +254,7 @@ std::unique_ptr<wxConfigBase> GetNewConfig( const wxString& aProgName )
configname.AssignDir( GetKicadConfigPath() ); configname.AssignDir( GetKicadConfigPath() );
configname.SetFullName( aProgName ); configname.SetFullName( aProgName );
// explicitly use wxFileConfig to prevent storing any settings in the system registry on Windows
return std::make_unique<wxFileConfig>( wxT( "" ), wxT( "" ), configname.GetFullPath() ); return std::make_unique<wxFileConfig>( wxT( "" ), wxT( "" ), configname.GetFullPath() );
} }