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

(cherry picked from commit cbf83c4161)
This commit is contained in:
Jeff Young 2023-05-21 11:17:23 +01:00
parent c33b3fd314
commit 799302cd6d
1 changed files with 4 additions and 0 deletions

View File

@ -1169,6 +1169,10 @@ void EDA_BASE_FRAME::ShowPreferences( wxString aStartPage, wxString aStartParent
if( !aStartPage.IsEmpty() ) if( !aStartPage.IsEmpty() )
dlg.SetInitialPage( aStartPage, aStartParentPage ); 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 ); dlg.SetEvtHandlerEnabled( true );
wxEndBusyCursor(); wxEndBusyCursor();