Update FPWatcher when saving canvas footprint.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16414
This commit is contained in:
Jeff Young 2023-12-31 11:25:38 +00:00
parent 965576f2c6
commit 71b9dd1fb4
1 changed files with 5 additions and 1 deletions

View File

@ -818,6 +818,10 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary( FOOTPRINT* aFootprint,
PROJECT_PCB::PcbFootprintLibs( &Prj() )->FootprintSave( aLibraryName, aFootprint );
aFootprint->SetFPID( LIB_ID( aLibraryName, aFootprint->GetFPID().GetLibItemName() ) );
if( aFootprint == GetBoard()->GetFirstFootprint() )
setFPWatcher( aFootprint );
return true;
}
catch( const IO_ERROR& ioe )