Fix a bad side effect shown with many sim tabs and with dynamic cursors applied for each, while closing/switching sim tabs.

This commit is contained in:
aris-kimi 2025-06-27 22:57:16 +03:00
parent 5b84d63a9b
commit 5007db9b74

View File

@ -2787,6 +2787,9 @@ void SIMULATOR_FRAME_UI::onPlotClosed( wxAuiNotebookEvent& event )
rebuildSignalsGrid( m_filter->GetValue() );
updatePlotCursors();
//To avoid a current side effect in dynamic cursors while closing one out of many sim tabs
updateSignalsGrid();
SIM_TAB* panel = GetCurrentSimTab();
if( !panel || panel->GetSimType() != ST_OP )
@ -2848,6 +2851,9 @@ void SIMULATOR_FRAME_UI::onPlotChanged( wxAuiNotebookEvent& event )
OnPlotSettingsChanged();
//To avoid a current side effect in dynamic cursors while switching sim tabs
updateSignalsGrid();
event.Skip();
}