Read fp-info-cache on first start of fp editor
if fp info list is not initialized
This commit is contained in:
parent
d79aee3f78
commit
50fa1937f9
|
@ -861,6 +861,10 @@ void FOOTPRINT_EDIT_FRAME::initLibraryTree()
|
||||||
FP_LIB_TABLE* fpTable = Prj().PcbFootprintLibs();
|
FP_LIB_TABLE* fpTable = Prj().PcbFootprintLibs();
|
||||||
|
|
||||||
WX_PROGRESS_REPORTER progressReporter( this, _( "Loading Footprint Libraries" ), 2 );
|
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 );
|
GFootprintList.ReadFootprintFiles( fpTable, NULL, &progressReporter );
|
||||||
progressReporter.Show( false );
|
progressReporter.Show( false );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue