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:
Jon Evans 2021-02-03 20:17:52 -05:00
parent da8d0472f5
commit f7e21682ec
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}