7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 08:41:41 +00:00

Eeschema, DESIGN_BLOCK_PANE: ensure the panel is shown before saving its size.

Otherwise, incorrect config saving happens, and not only for this panel.
This commit is contained in:
jean-pierre charras 2025-02-11 20:06:10 +01:00
parent 7911165294
commit 7e0d2f2ef4

View File

@ -99,7 +99,10 @@ DESIGN_BLOCK_PANE::~DESIGN_BLOCK_PANE()
void DESIGN_BLOCK_PANE::OnSize( wxSizeEvent &aEvent )
{
if( APP_SETTINGS_BASE* cfg = m_frame->config() )
m_frame->SaveSettings( cfg );
{
if( IsShownOnScreen() ) // Ensure the panel is shown when trying to save its size
m_frame->SaveSettings( cfg );
}
aEvent.Skip();
}