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:
parent
5622a51193
commit
c360bbba20
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue