Default grid: set PCB to 0.5mm, Page Layout editor to 100 mil

This commit is contained in:
Mike Williams 2024-02-15 13:31:22 -05:00
parent 01544cb010
commit 407bb10197
1 changed files with 6 additions and 3 deletions

View File

@ -332,15 +332,18 @@ void APP_SETTINGS_BASE::addParamsForWindow( WINDOW_SETTINGS* aWindow, const std:
int defaultGridIdx;
if( m_filename == wxS( "pl_editor" )
|| ( m_filename == wxS( "eeschema" ) || m_filename == wxS( "symbol_editor" ) ) )
if( ( m_filename == wxS( "eeschema" ) || m_filename == wxS( "symbol_editor" ) ) )
{
defaultGridIdx = 1;
}
else
else if( m_filename == wxS( "pl_editor" ) )
{
defaultGridIdx = 4;
}
else
{
defaultGridIdx = 15;
}
m_params.emplace_back( new PARAM_LIST<GRID>( aJsonPath + ".grid.sizes", &aWindow->grid.grids,
DefaultGridSizeList() ) );