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
b06c2585d9
commit
0e00ca31ea
|
@ -1922,6 +1922,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