Need to check enabled as well as visible.
Fixes https://gitlab.com/kicad/code/kicad/issues/12786
This commit is contained in:
parent
396e220133
commit
be29ab2c76
|
@ -1531,11 +1531,8 @@ void PCB_EDIT_FRAME::UpdateUserInterface()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sync visibility with canvas
|
// Sync visibility with canvas
|
||||||
KIGFX::VIEW* view = GetCanvas()->GetView();
|
|
||||||
LSET visible = GetBoard()->GetVisibleLayers();
|
|
||||||
|
|
||||||
for( PCB_LAYER_ID layer : LSET::AllLayersMask().Seq() )
|
for( PCB_LAYER_ID layer : LSET::AllLayersMask().Seq() )
|
||||||
view->SetLayerVisible( layer, visible.Contains( layer ) );
|
GetCanvas()->GetView()->SetLayerVisible( layer, GetBoard()->IsLayerVisible( layer ) );
|
||||||
|
|
||||||
// Stackup and/or color theme may have changed
|
// Stackup and/or color theme may have changed
|
||||||
m_appearancePanel->OnBoardChanged();
|
m_appearancePanel->OnBoardChanged();
|
||||||
|
|
Loading…
Reference in New Issue