Avoid double-redraw on board load

This commit is contained in:
Jon Evans 2021-03-14 11:41:56 -04:00
parent 2cbd7b5043
commit 521982cbf6
2 changed files with 5 additions and 3 deletions

View File

@ -396,10 +396,10 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id )
if( !Clear_Pcb( false ) )
return false;
onBoardLoaded();
LoadProjectSettings();
onBoardLoaded();
OnModify();
return true;
}

View File

@ -131,7 +131,9 @@ bool PCB_EDIT_FRAME::LoadProjectSettings()
opts.m_PadOpacity = localSettings.m_PadOpacity;
opts.m_ZoneOpacity = localSettings.m_ZoneOpacity;
opts.m_ZoneDisplayMode = localSettings.m_ZoneDisplayMode;
SetDisplayOptions( opts );
// No refresh here: callers of LoadProjectSettings refresh later
SetDisplayOptions( opts, false );
BOARD_DESIGN_SETTINGS& bds = GetDesignSettings();
bds.m_UseConnectedTrackWidth = localSettings.m_AutoTrackWidth;