Browse Source

Pcbnew: minor fix: avoid flicker in Layer Manager when closing Pcbnew.

It was due to useless paint events during closing, on some platforms.
pull/13/head
jean-pierre charras 7 years ago
parent
commit
2c0fe8f595
  1. 5
      pcbnew/footprint_edit_frame.cpp
  2. 6
      pcbnew/pcb_edit_frame.cpp

5
pcbnew/footprint_edit_frame.cpp

@ -522,6 +522,11 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
GetGalCanvas()->StopDrawing();
}
// Do not show the layer manager during closing to avoid flicker
// on some platforms (Windows) that generate useless redraw of items in
// the Layer Manger
m_auimgr.GetPane( "LayersManager" ).Show( false );
Clear_Pcb( false );
//close the editor

6
pcbnew/pcb_edit_frame.cpp

@ -626,6 +626,12 @@ void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
wxMessageBox( msg, Pgm().App().GetAppName(), wxOK | wxICON_ERROR, this );
}
// Do not show the layer manager during closing to avoid flicker
// on some platforms (Windows) that generate useless redraw of items in
// the Layer Manger
if( m_show_layer_manager_tools )
m_auimgr.GetPane( "LayersManager" ).Show( false );
// Delete board structs and undo/redo lists, to avoid crash on exit
// when deleting some structs (mainly in undo/redo lists) too late
Clear_Pcb( false );

Loading…
Cancel
Save