Init checkboxes after reading prefs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20309

(cherry picked from commit 521b411090d7ddc360b04a59cc0d808921d7bd54)
This commit is contained in:
Jeff Young 2025-03-14 13:26:24 +00:00
parent f835591c8b
commit 3ea0191954

View File

@ -238,6 +238,7 @@ SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// Can't put this in LoadSettings, because it has to be called before setupTools :/
SCH_SELECTION_TOOL* selTool = GetToolManager()->GetTool<SCH_SELECTION_TOOL>();
selTool->GetFilter() = GetSettings()->m_SelectionFilter;
m_selectionFilterPanel->SetCheckboxesFromFilter( selTool->GetFilter() );
if( m_settings->m_LibWidth > 0 )
SetAuiPaneSize( m_auimgr, m_auimgr.GetPane( "LibraryTree" ), m_settings->m_LibWidth, -1 );