7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 00:21:36 +00:00

Simulator: Fix live view (regression)

- Fixes regression from commit 1fc3068d
- Traces were not updated while simulation was running
This commit is contained in:
lucas 2025-01-18 14:19:33 +01:00 committed by Seth Hillbrand
parent 24ec25a24c
commit e6eff2ce27

View File

@ -1690,7 +1690,7 @@ void SIMULATOR_FRAME_UI::updateTrace( const wxString& aVectorName, int aTraceTyp
SIM_PLOT_TAB* aPlotTab, std::vector<double>* aDataX,
bool aClearData )
{
if( !m_simulatorFrame->SimFinished() )
if( !m_simulatorFrame->SimFinished() && !simulator()->IsRunning())
{
aPlotTab->GetOrAddTrace( aVectorName, aTraceType );
return;
@ -1721,7 +1721,7 @@ void SIMULATOR_FRAME_UI::updateTrace( const wxString& aVectorName, int aTraceTyp
aDataX = &data_x;
// First, handle the x axis
if( aDataX->empty() && !aClearData && m_simulatorFrame->SimFinished() )
if( aDataX->empty() && !aClearData )
{
wxString xAxisName( simulator()->GetXAxis( simType ) );