Hookup footprint reload to redraw icon
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7195
This commit is contained in:
parent
a0a368f47b
commit
6537f9fa15
|
@ -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 )
|
void FOOTPRINT_VIEWER_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
|
||||||
{
|
{
|
||||||
switch( mail.Command() )
|
switch( mail.Command() )
|
||||||
|
|
|
@ -85,6 +85,8 @@ public:
|
||||||
|
|
||||||
void KiwayMailIn( KIWAY_EXPRESS& mail ) override;
|
void KiwayMailIn( KIWAY_EXPRESS& mail ) override;
|
||||||
|
|
||||||
|
void HardRedraw() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent );
|
FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue