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
This commit is contained in:
Jon Evans 2020-08-16 18:42:50 -04:00
parent fd53df6f10
commit 595ea70b0f
1 changed files with 2 additions and 0 deletions

View File

@ -229,6 +229,7 @@ void APPEARANCE_CONTROLS::OnNotebookPageChanged( wxNotebookEvent& aEvent )
m_notebook->ChangeSelection( static_cast<unsigned>( 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
}