mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Read Footprint Library Browser grid settings from Footprint Editor.
Implements commit 3a0dbf48c88d199be089a31aab76519e5da22360 for Footprint Library Browser/Editor. Fixes: lp:1822401 https://bugs.launchpad.net/kicad/+bug/1822401
This commit is contained in:
parent
d29ee13fda
commit
a611269975
@ -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…
x
Reference in New Issue
Block a user