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:
parent
ff6f398607
commit
aadcc43dbb
|
@ -1921,6 +1921,7 @@ void APPEARANCE_CONTROLS::onLayerVisibilityToggled( PCB_LAYER_ID aLayer )
|
||||||
LSET visibleLayers = getVisibleLayers();
|
LSET visibleLayers = getVisibleLayers();
|
||||||
|
|
||||||
visibleLayers.set( aLayer, !visibleLayers.test( aLayer ) );
|
visibleLayers.set( aLayer, !visibleLayers.test( aLayer ) );
|
||||||
|
setVisibleLayers( visibleLayers );
|
||||||
m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, visibleLayers.test( aLayer ) );
|
m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, visibleLayers.test( aLayer ) );
|
||||||
|
|
||||||
syncLayerPresetSelection();
|
syncLayerPresetSelection();
|
||||||
|
|
Loading…
Reference in New Issue