From cbf83c4161f91924a9b6025fdc1f12c16857ffce Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 21 May 2023 11:17:23 +0100 Subject: [PATCH] Pin preferences dialog size. While unfortunate (we generally frown on having fixed sizes in favour of having everything auto-layout), in this case it's a cost of lazy-loading the panels. Fixes https://gitlab.com/kicad/code/kicad/-/issues/14785 --- common/eda_base_frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 6193910ec7..ad6b6d2f12 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -1170,6 +1170,10 @@ void EDA_BASE_FRAME::ShowPreferences( wxString aStartPage, wxString aStartParent if( !aStartPage.IsEmpty() ) dlg.SetInitialPage( aStartPage, aStartParentPage ); + // This is unfortunate, but it's the cost of lazy-loading the panels + book->SetMinSize( wxSize( 980, 560 ) ); + book->SetInitialSize( wxSize( 980, 560 ) ); + dlg.SetEvtHandlerEnabled( true ); wxEndBusyCursor();