Pcbnew: minor fix: avoid flicker in Layer Manager when closing Pcbnew.
It was due to useless paint events during closing, on some platforms.
This commit is contained in:
parent
57ceec5606
commit
2c0fe8f595
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue