Hookup footprint reload to redraw icon

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7195

(cherry picked from commit 6537f9fa15)
This commit is contained in:
Seth Hillbrand 2024-05-10 08:41:39 -07:00
parent b39b54a92e
commit 828f32649f
2 changed files with 9 additions and 0 deletions

View File

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

View File

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