Browse Source

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

6.0.7
Marek Roszko 5 years ago
parent
commit
fc272f407a
  1. 9
      pcbnew/footprint_edit_frame.cpp

9
pcbnew/footprint_edit_frame.cpp

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

Loading…
Cancel
Save