Update FPWatcher when saving canvas footprint.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16414
This commit is contained in:
parent
965576f2c6
commit
71b9dd1fb4
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue