Browse footprint libraries now remember window-size and position

(resolveCanvasType() saves the settings, so it must come after they are loaded)
Fixes #9935
https://gitlab.com/kicad/code/kicad/issues/9935
This commit is contained in:
jean-pierre charras 2021-12-12 09:02:15 +01:00
parent 5622a51193
commit c360bbba20
1 changed files with 3 additions and 2 deletions

View File

@ -184,8 +184,6 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
GetGalDisplayOptions(), m_canvasType );
SetCanvas( drawPanel );
resolveCanvasType();
SetBoard( new BOARD() );
// This board will only be used to hold a footprint for viewing
@ -208,6 +206,9 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
LoadSettings( config() );
GetGalDisplayOptions().m_axesEnabled = true;
// Call resolveCanvasType after loading settings:
resolveCanvasType();
// Create the manager and dispatcher & route draw panel events to the dispatcher
m_toolManager = new TOOL_MANAGER;
m_toolManager->SetEnvironment( GetBoard(), drawPanel->GetView(),