Browse Source

Don't refresh appearance panel until after project is loaded

pull/16/head
Jon Evans 5 years ago
parent
commit
0fa755ebb8
  1. 2
      pcbnew/files.cpp
  2. 2
      pcbnew/pcb_edit_frame.cpp

2
pcbnew/files.cpp

@ -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 ) )

2
pcbnew/pcb_edit_frame.cpp

@ -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();

Loading…
Cancel
Save