From 60503652a19ec5446a7bd27a50c4e280060c5e0f Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 25 Dec 2020 10:44:18 -0500 Subject: [PATCH] Kick-start appearance panel to redraw on Mac Fixes https://gitlab.com/kicad/code/kicad/-/issues/6827 --- pcbnew/pcb_edit_frame.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 0e91071794..aa1162bcd2 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -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 }