Don't exit KiCad when simulator window is closed.

This commit is contained in:
Jeff Young 2023-04-18 23:55:16 +01:00
parent f7a552a2b3
commit 51b6ec0dce
1 changed files with 6 additions and 2 deletions

View File

@ -3029,9 +3029,13 @@ void SIMULATOR_FRAME::onSimReport( wxCommandEvent& aEvent )
} }
void SIMULATOR_FRAME::onExit( wxCommandEvent& event ) void SIMULATOR_FRAME::onExit( wxCommandEvent& aEvent )
{ {
Kiway().OnKiCadExit(); if( aEvent.GetId() == wxID_EXIT )
Kiway().OnKiCadExit();
if( aEvent.GetId() == wxID_CLOSE )
Close( false );
} }