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:
parent
613c020920
commit
0e54128146
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue