Remove old code from KICAD_MANAGER_FRAME OnCloseWindow

The size is saved inside EDA_BASE_FRAME, and is done before
this function is called, so this code had no effect.
This commit is contained in:
Ian McInerney 2020-05-16 22:53:08 +01:00
parent 613c020920
commit 0e54128146
1 changed files with 0 additions and 13 deletions

View File

@ -310,23 +310,10 @@ void KICAD_MANAGER_FRAME::OnCloseWindow( wxCloseEvent& Event )
if( Kiway().PlayersClose( false ) )
{
int px, py;
// Save the currently opened file in the file history
if( !GetProjectFileName().empty() )
UpdateFileHistory( GetProjectFileName() );
if( !IsIconized() ) // save main frame position and size
{
GetPosition( &px, &py );
m_FramePos.x = px;
m_FramePos.y = py;
GetSize( &px, &py );
m_FrameSize.x = px;
m_FrameSize.y = py;
}
Event.SetCanVeto( true );
m_leftWin->Show( false );