From 0fa755ebb8c10cbdc51937238b7e677f929af3af Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 22 Aug 2020 14:55:24 -0400 Subject: [PATCH] Don't refresh appearance panel until after project is loaded --- pcbnew/files.cpp | 2 -- pcbnew/pcb_edit_frame.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 84a86d8d04..d84328c6e6 100644 --- a/pcbnew/files.cpp +++ b/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 ) ) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index df270f0f1a..6d1a9c20e2 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/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();