Performance enhancements.

Don't redraw all pads when active layer is set unless it has
really changed.
This commit is contained in:
Jeff Young 2020-10-11 17:06:28 +01:00
parent 8e70381be3
commit 7fb767653c
1 changed files with 3 additions and 0 deletions

View File

@ -971,6 +971,9 @@ void PCB_EDIT_FRAME::SetGridColor( COLOR4D aColor )
void PCB_EDIT_FRAME::SetActiveLayer( PCB_LAYER_ID aLayer )
{
if( GetActiveLayer() == aLayer )
return;
PCB_BASE_FRAME::SetActiveLayer( aLayer );
m_appearancePanel->OnLayerChanged();