Don't call .Load() and cause settings to reload from disk
RegisterSettings can load the new settings json as added by not turning off the load now parameter
This commit is contained in:
parent
d57b726c90
commit
a2522a2230
|
@ -373,12 +373,11 @@ bool IFACE::OnKifaceStart( PGM_BASE* aProgram, int aCtlBits )
|
||||||
// This is process-level-initialization, not project-level-initialization of the DSO.
|
// This is process-level-initialization, not project-level-initialization of the DSO.
|
||||||
// Do nothing in here pertinent to a project!
|
// Do nothing in here pertinent to a project!
|
||||||
InitSettings( new EESCHEMA_SETTINGS );
|
InitSettings( new EESCHEMA_SETTINGS );
|
||||||
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings(), false );
|
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings() );
|
||||||
|
|
||||||
// Register the symbol editor settings as well because they share a KiFACE and need to be
|
// Register the symbol editor settings as well because they share a KiFACE and need to be
|
||||||
// loaded prior to use to avoid threading deadlocks
|
// loaded prior to use to avoid threading deadlocks
|
||||||
aProgram->GetSettingsManager().RegisterSettings( new SYMBOL_EDITOR_SETTINGS, false );
|
aProgram->GetSettingsManager().RegisterSettings( new SYMBOL_EDITOR_SETTINGS );
|
||||||
aProgram->GetSettingsManager().Load();
|
|
||||||
|
|
||||||
start_common( aCtlBits );
|
start_common( aCtlBits );
|
||||||
|
|
||||||
|
|
|
@ -382,15 +382,14 @@ bool IFACE::OnKifaceStart( PGM_BASE* aProgram, int aCtlBits )
|
||||||
// This is process-level-initialization, not project-level-initialization of the DSO.
|
// This is process-level-initialization, not project-level-initialization of the DSO.
|
||||||
// Do nothing in here pertinent to a project!
|
// Do nothing in here pertinent to a project!
|
||||||
InitSettings( new PCBNEW_SETTINGS );
|
InitSettings( new PCBNEW_SETTINGS );
|
||||||
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings(), false );
|
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings() );
|
||||||
|
|
||||||
// Register the footprint editor settings as well because they share a KiFACE and need to be
|
// Register the footprint editor settings as well because they share a KiFACE and need to be
|
||||||
// loaded prior to use to avoid threading deadlocks
|
// loaded prior to use to avoid threading deadlocks
|
||||||
aProgram->GetSettingsManager().RegisterSettings( new FOOTPRINT_EDITOR_SETTINGS, false );
|
aProgram->GetSettingsManager().RegisterSettings( new FOOTPRINT_EDITOR_SETTINGS );
|
||||||
aProgram->GetSettingsManager().RegisterSettings( new CVPCB_SETTINGS, false );
|
aProgram->GetSettingsManager().RegisterSettings( new CVPCB_SETTINGS );
|
||||||
aProgram->GetSettingsManager().RegisterSettings( new EDA_3D_VIEWER_SETTINGS, false );
|
aProgram->GetSettingsManager().RegisterSettings( new EDA_3D_VIEWER_SETTINGS );
|
||||||
|
|
||||||
aProgram->GetSettingsManager().Load();
|
|
||||||
start_common( aCtlBits );
|
start_common( aCtlBits );
|
||||||
|
|
||||||
if( !loadGlobalLibTable() )
|
if( !loadGlobalLibTable() )
|
||||||
|
|
Loading…
Reference in New Issue