From 0e9efef7aa743aab87fa67371b83230099c2b4f9 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 25 Oct 2020 17:27:06 -0400 Subject: [PATCH] Never show footprints in power symbol chooser mode --- eeschema/dialogs/dialog_choose_component.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_choose_component.cpp b/eeschema/dialogs/dialog_choose_component.cpp index fab1a22fe8..b05ca053f8 100644 --- a/eeschema/dialogs/dialog_choose_component.cpp +++ b/eeschema/dialogs/dialog_choose_component.cpp @@ -69,11 +69,15 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( SCH_BASE_FRAME* aParent, const m_show_footprints( aShowFootprints ), m_external_browser_requested( false ) { + // Never show footprints in power symbol mode + if( aAdapter->GetFilter() == SYMBOL_TREE_MODEL_ADAPTER::CMP_FILTER_POWER ) + m_show_footprints = false; + auto sizer = new wxBoxSizer( wxVERTICAL ); // Use a slightly different layout, with a details pane spanning the entire window, // if we're not showing footprints. - if( aShowFootprints ) + if( m_show_footprints ) { m_hsplitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE );