Fix saving colors modified outside of preferences

This commit is contained in:
Jon Evans 2020-09-24 17:29:32 -04:00
parent e16b7626cd
commit ff652d5375
2 changed files with 5 additions and 1 deletions

View File

@ -473,7 +473,7 @@ void FOOTPRINT_EDIT_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
void FOOTPRINT_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg )
{
// aCfg will be the PCBNEW_SETTINGS
auto cfg = GetSettings();
FOOTPRINT_EDITOR_SETTINGS* cfg = GetSettings();
PCB_BASE_FRAME::SaveSettings( cfg );
@ -481,6 +481,8 @@ void FOOTPRINT_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg )
cfg->m_Display = m_DisplayOptions;
cfg->m_LibWidth = m_treePane->GetSize().x;
cfg->m_SelectionFilter = GetToolManager()->GetTool<SELECTION_TOOL>()->GetFilter();
GetSettingsManager()->SaveColorSettings( GetColorSettings(), "board" );
}

View File

@ -997,6 +997,8 @@ void PCB_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg )
cfg->m_AuiPanels.appearance_panel_tab = m_appearancePanel->GetTabIndex();
cfg->m_ShowPageLimits = m_showPageLimits;
}
GetSettingsManager()->SaveColorSettings( GetColorSettings(), "board" );
}