Save color settings after modification in Appearances Manager.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15390
This commit is contained in:
Jeff Young 2023-08-18 11:04:28 +01:00
parent 08003164ce
commit 1cbc6e33db
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>
@ -2916,7 +2917,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();