From 50fa1937f9e8955f1ecdf8bc76a44e4e3747bfbd Mon Sep 17 00:00:00 2001 From: qu1ck Date: Fri, 18 Dec 2020 18:56:36 -0800 Subject: [PATCH] Read fp-info-cache on first start of fp editor if fp info list is not initialized --- pcbnew/footprint_edit_frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index a6733ac180..5732b2460a 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -861,6 +861,10 @@ void FOOTPRINT_EDIT_FRAME::initLibraryTree() FP_LIB_TABLE* fpTable = Prj().PcbFootprintLibs(); WX_PROGRESS_REPORTER progressReporter( this, _( "Loading Footprint Libraries" ), 2 ); + if( GFootprintList.GetCount() == 0 ) + { + GFootprintList.ReadCacheFromFile( Prj().GetProjectPath() + "fp-info-cache" ); + } GFootprintList.ReadFootprintFiles( fpTable, NULL, &progressReporter ); progressReporter.Show( false );