Kick-start appearance panel to redraw on Mac

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6827
This commit is contained in:
Jon Evans 2020-12-25 10:44:18 -05:00
parent cd88071369
commit 60503652a1
1 changed files with 11 additions and 0 deletions

View File

@ -350,6 +350,17 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// if( !appK2S.FileExists() )
// GetMenuBar()->FindItem( ID_GEN_EXPORT_FILE_STEP )->Enable( false );
// AUI doesn't refresh properly on wxMac after changes in eb7dc6dd, so force it to
#ifdef __WXMAC__
if( Kiface().IsSingle() )
{
CallAfter( [&]()
{
m_appearancePanel->OnBoardChanged();
} );
}
#endif
}