From 595ea70b0fc604f3f230b1b55829c04c94b01e27 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 16 Aug 2020 18:42:50 -0400 Subject: [PATCH] Don't rebuild on page change in MSW This bug appears to not happen on MSW, so we can avoid the refresh Fixes https://gitlab.com/kicad/code/kicad/-/issues/5210 --- pcbnew/widgets/appearance_controls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/widgets/appearance_controls.cpp b/pcbnew/widgets/appearance_controls.cpp index cb0bfc4dbe..3f5df9aa75 100644 --- a/pcbnew/widgets/appearance_controls.cpp +++ b/pcbnew/widgets/appearance_controls.cpp @@ -229,6 +229,7 @@ void APPEARANCE_CONTROLS::OnNotebookPageChanged( wxNotebookEvent& aEvent ) m_notebook->ChangeSelection( static_cast( page ) ); #endif +#ifndef __WXMSW__ // Because wxWidgets is broken and will send click events to children of the collapsible // panes even if they are collapsed without this Freeze(); @@ -236,6 +237,7 @@ void APPEARANCE_CONTROLS::OnNotebookPageChanged( wxNotebookEvent& aEvent ) m_panelNetsAndClasses->Fit(); m_sizerOuter->Layout(); Thaw(); +#endif }