Remove automatic simulation start on simulator launch

Fixes https://gitlab.com/kicad/code/kicad/issues/8644
This commit is contained in:
Mikolaj Wielgus 2021-07-06 00:45:15 +02:00 committed by Jeff Young
parent 6dfd655a7f
commit 43cce8b0b5
1 changed files with 7 additions and 2 deletions

View File

@ -305,14 +305,19 @@ WINDOW_SETTINGS* SIM_PLOT_FRAME::GetWindowSettings( APP_SETTINGS_BASE* aCfg )
void SIM_PLOT_FRAME::initWorkbook()
{
if( !m_simulator->Settings()->GetWorkbookFilename().IsEmpty() )
// Removed for the time being. We cannot run the simulation on simulator launch, as it may
// take a lot of time, confusing the user.
// TODO: Change workbook loading routines so that they don't run the simulation until the user
// initiates it.
/*if( !m_simulator->Settings()->GetWorkbookFilename().IsEmpty() )
{
wxFileName filename = m_simulator->Settings()->GetWorkbookFilename();
filename.SetPath( Prj().GetProjectPath() );
if( !loadWorkbook( filename.GetFullPath() ) )
m_simulator->Settings()->SetWorkbookFilename( "" );
}
}*/
}