APPEARANCE_CONTROLS: fix missing update when toggling a layer view.

Fixes #10977
https://gitlab.com/kicad/code/kicad/issues/10977
This commit is contained in:
jean-pierre charras 2022-02-26 10:36:57 +01:00
parent b06c2585d9
commit 0e00ca31ea
1 changed files with 1 additions and 0 deletions

View File

@ -1922,6 +1922,7 @@ void APPEARANCE_CONTROLS::onLayerVisibilityToggled( PCB_LAYER_ID aLayer )
LSET visibleLayers = getVisibleLayers();
visibleLayers.set( aLayer, !visibleLayers.test( aLayer ) );
setVisibleLayers( visibleLayers );
m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, visibleLayers.test( aLayer ) );
syncLayerPresetSelection();