Save common settings if we just created them

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16775
This commit is contained in:
Jon Evans 2024-02-06 21:33:31 -05:00
parent 181100fe44
commit ba25f881c6
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ SETTINGS_MANAGER::SETTINGS_MANAGER( bool aHeadless ) :
// Create the built-in color settings
// Here to allow the Python API to access the built-in colors
registerBuiltinColorSettings();
if( !wxFileExists( GetPathForSettingsFile( m_common_settings ) ) )
Save( m_common_settings );
}
SETTINGS_MANAGER::~SETTINGS_MANAGER()