From badc4e7411818274feab94bb84228e4936a37fd4 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Fri, 16 Feb 2024 23:15:59 +0300 Subject: [PATCH] Hide unused message panel in footprint/symbol chooser frames. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15810 Fixes https://gitlab.com/kicad/code/kicad/-/issues/15889 --- eeschema/symbol_chooser_frame.cpp | 2 ++ pcbnew/footprint_chooser_frame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/eeschema/symbol_chooser_frame.cpp b/eeschema/symbol_chooser_frame.cpp index 9d9a398ffd..e4c9607041 100644 --- a/eeschema/symbol_chooser_frame.cpp +++ b/eeschema/symbol_chooser_frame.cpp @@ -71,6 +71,8 @@ SYMBOL_CHOOSER_FRAME::SYMBOL_CHOOSER_FRAME( KIWAY* aKiway, wxWindow* aParent ) : { SetModal( true ); + m_messagePanel->Hide(); + wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL ); std::vector dummyAlreadyPlaced; diff --git a/pcbnew/footprint_chooser_frame.cpp b/pcbnew/footprint_chooser_frame.cpp index 92bd847540..923ee9b856 100644 --- a/pcbnew/footprint_chooser_frame.cpp +++ b/pcbnew/footprint_chooser_frame.cpp @@ -80,6 +80,8 @@ FOOTPRINT_CHOOSER_FRAME::FOOTPRINT_CHOOSER_FRAME( KIWAY* aKiway, wxWindow* aPare { SetModal( true ); + m_messagePanel->Hide(); + m_filterByFPFilters = new wxCheckBox( this, wxID_ANY, _( "Apply footprint filters" ) ); m_filterByPinCount = new wxCheckBox( this, wxID_ANY, _( "Filter by pin count" ) );