Sim: Only set sim command if the sheet sim command is different

This commit is contained in:
Mikolaj Wielgus 2022-10-19 03:02:32 +02:00
parent f68df09696
commit 952f3da53f
1 changed files with 3 additions and 1 deletions

View File

@ -466,8 +466,10 @@ void SIM_PLOT_FRAME::StartSimulation( const wxString& aSimCommand )
if( aSimCommand != "" )
m_circuitModel->SetSimCommand( aSimCommand );
else
else if( m_circuitModel->GetSheetSimCommand() != getCurrentSimCommand() )
m_circuitModel->SetSimCommand( getCurrentSimCommand() );
else
m_circuitModel->SetSimCommand( "" );
// Make .save all and .probe alli permanent for now.
m_circuitModel->SetOptions( m_settingsDlg->GetNetlistOptions()