Read Footprint Library Browser grid settings from Footprint Editor.
Implements commit3a0dbf48c8
for Footprint Library Browser/Editor. Fixes: lp:1822401 https://bugs.launchpad.net/kicad/+bug/1822401 (cherry picked from commita611269975
)
This commit is contained in:
parent
77993ced7e
commit
fb875145aa
|
@ -501,6 +501,20 @@ void FOOTPRINT_VIEWER_FRAME::LoadSettings( wxConfigBase* aCfg )
|
|||
{
|
||||
PCB_BASE_FRAME::LoadSettings( aCfg );
|
||||
|
||||
// Fetch grid settings from Footprint Editor
|
||||
wxString footprintEditor = FOOTPRINT_EDIT_FRAME_NAME;
|
||||
bool btmp;
|
||||
COLOR4D wtmp;
|
||||
|
||||
if( aCfg->Read( footprintEditor + ShowGridEntryKeyword, &btmp ) )
|
||||
SetGridVisibility( btmp );
|
||||
|
||||
if( wtmp.SetFromWxString( aCfg->Read( footprintEditor + GridColorEntryKeyword, wxT( "NONE" ) ) ) )
|
||||
SetGridColor( wtmp );
|
||||
|
||||
// Grid shape, etc.
|
||||
GetGalDisplayOptions().ReadConfig( aCfg, footprintEditor + GAL_DISPLAY_OPTIONS_KEY );
|
||||
|
||||
m_configSettings.Load( aCfg ); // mainly, load the color config
|
||||
|
||||
aCfg->Read( ConfigBaseName() + AUTO_ZOOM_KEY, &m_autoZoom, true );
|
||||
|
|
Loading…
Reference in New Issue