Fix saving colors modified outside of preferences
This commit is contained in:
parent
e16b7626cd
commit
ff652d5375
|
@ -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" );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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" );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue