Save color settings after modification in Appearances Manager.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15390

(cherry picked from commit 1cbc6e33db)
This commit is contained in:
Jeff Young 2023-08-18 11:04:28 +01:00
parent c521efa35d
commit df63f47deb
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@
#include <project.h>
#include <project/project_local_settings.h>
#include <settings/color_settings.h>
#include <settings/settings_manager.h>
#include <tool/tool_manager.h>
#include <tools/pcb_actions.h>
#include <widgets/bitmap_button.h>
@ -2913,7 +2914,9 @@ void APPEARANCE_CONTROLS::OnColorSwatchChanged( wxCommandEvent& aEvent )
int layer = swatch->GetId();
COLOR_SETTINGS* cs = m_frame->GetColorSettings();
cs->SetColor( layer, newColor );
m_frame->GetSettingsManager()->SaveColorSettings( cs, "board" );
m_frame->GetCanvas()->UpdateColors();