Avoid double-redraw on board load
This commit is contained in:
parent
2cbd7b5043
commit
521982cbf6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue