Write the fp-info-cache if we close the footprint editor

This commit is contained in:
Marek Roszko 2020-12-18 22:56:01 -05:00
parent 4788f3ae6b
commit fc272f407a
1 changed files with 8 additions and 1 deletions

View File

@ -636,7 +636,14 @@ void FOOTPRINT_EDIT_FRAME::doCloseWindow()
Clear_Pcb( false );
Pgm().GetSettingsManager().FlushAndRelease( GetSettings() );
SETTINGS_MANAGER* mgr = GetSettingsManager();
if( mgr->IsProjectOpen() && wxFileName::IsDirWritable( Prj().GetProjectPath() ) )
{
GFootprintList.WriteCacheToFile( Prj().GetProjectPath() + "fp-info-cache" );
}
mgr->FlushAndRelease( GetSettings() );
}