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:
parent
b39b54a92e
commit
828f32649f
|
@ -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() )
|
||||
|
|
|
@ -85,6 +85,8 @@ public:
|
|||
|
||||
void KiwayMailIn( KIWAY_EXPRESS& mail ) override;
|
||||
|
||||
void HardRedraw() override;
|
||||
|
||||
protected:
|
||||
FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent );
|
||||
|
||||
|
|
Loading…
Reference in New Issue