Browse Source

Hookup footprint reload to redraw icon

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7195
fusion360
Seth Hillbrand 2 years ago
parent
commit
6537f9fa15
  1. 7
      pcbnew/footprint_viewer_frame.cpp
  2. 2
      pcbnew/footprint_viewer_frame.h

7
pcbnew/footprint_viewer_frame.cpp

@ -952,6 +952,13 @@ void FOOTPRINT_VIEWER_FRAME::ReloadFootprint( FOOTPRINT* aFootprint )
}
void FOOTPRINT_VIEWER_FRAME::HardRedraw()
{
ReCreateLibraryList();
ReCreateFootprintList();
ReloadFootprint( GetBoard()->GetFirstFootprint() );
}
void FOOTPRINT_VIEWER_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
{
switch( mail.Command() )

2
pcbnew/footprint_viewer_frame.h

@ -85,6 +85,8 @@ public:
void KiwayMailIn( KIWAY_EXPRESS& mail ) override;
void HardRedraw() override;
protected:
FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent );

Loading…
Cancel
Save