From ba25f881c6511bddab1600bc1242520374b5c750 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 6 Feb 2024 21:33:31 -0500 Subject: [PATCH] Save common settings if we just created them Fixes https://gitlab.com/kicad/code/kicad/-/issues/16775 --- common/settings/settings_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/settings/settings_manager.cpp b/common/settings/settings_manager.cpp index 992de85e4c..f1b75fe87f 100644 --- a/common/settings/settings_manager.cpp +++ b/common/settings/settings_manager.cpp @@ -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()