Don't refresh appearance panel until after project is loaded

This commit is contained in:
Jon Evans 2020-08-22 14:55:24 -04:00
parent aa84bd6283
commit 0fa755ebb8
2 changed files with 2 additions and 2 deletions

View File

@ -306,8 +306,6 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id )
// Don't set name until the user hits save, so project files are not created
mgr->LoadProject( "" );
m_appearancePanel->OnBoardChanged();
LoadProjectSettings();
if( !Clear_Pcb( false ) )

View File

@ -1008,6 +1008,8 @@ void PCB_EDIT_FRAME::onBoardLoaded()
SetElementVisibility( LAYER_RATSNEST, GetDisplayOptions().m_ShowGlobalRatsnest );
m_appearancePanel->OnBoardChanged();
// Update the tracks / vias available sizes list:
ReCreateAuxiliaryToolbar();