Delay loading eeschema "project settings" to after the ui is ready

This commit is contained in:
Marek Roszko 2021-05-01 16:13:48 -04:00
parent 0dd746548a
commit 9dc611f704
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,6 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// After schematic has been linked to project, SCHEMATIC_SETTINGS works
m_defaults = &m_schematic->Settings();
LoadProjectSettings();
setupTools();
setupUIConditions();
@ -278,6 +277,8 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
resolveCanvasType();
SwitchCanvas( m_canvasType );
LoadProjectSettings();
initScreenZoom();
// This is used temporarily to fix a client size issue on GTK that causes zoom to fit