simulator: shows the wxCURSOR_ARROWWAIT cursor only when the sim is running.

Reset the mouse cursor to its default shape when the simulation is finished.
This commit is contained in:
jean-pierre charras 2023-07-10 13:30:02 +02:00
parent 7302df8be3
commit 6a47fe1e3c
1 changed files with 5 additions and 1 deletions

View File

@ -716,8 +716,12 @@ void SIMULATOR_FRAME::onSimFinished( wxCommandEvent& aEvent )
} while( max_time && m_simulator->IsRunning() );
}
// Is a warning message useful if the simulatior is still running?
// ensure the shown cursor is the default cursor, not the wxCURSOR_ARROWWAIT set when
// staring the simulator in onSimStarted:
SetCursor( wxNullCursor );
// Is a warning message useful if the simulatior is still running?
SCHEMATIC& schematic = m_schematicFrame->Schematic();
schematic.ClearOperatingPoints();