Update model in APPEARANCE_CONTROLS::SetObjectVisible
Don't make the caller remember to do so Fixes https://gitlab.com/kicad/code/kicad/-/issues/7411
This commit is contained in:
parent
da8d0472f5
commit
f7e21682ec
|
@ -1101,6 +1101,8 @@ void APPEARANCE_CONTROLS::SetObjectVisible( GAL_LAYER_ID aLayer, bool isVisible
|
|||
setting->ctl_visibility->SetValue( isVisible );
|
||||
}
|
||||
|
||||
m_frame->GetBoard()->SetElementVisibility( aLayer, isVisible );
|
||||
|
||||
m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, isVisible );
|
||||
m_frame->GetCanvas()->Refresh();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue