Update local ratsnest state when toggling appearance control

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7035
This commit is contained in:
Jon Evans 2021-01-14 22:03:23 -05:00
parent 915bf95d4d
commit 0b7fc0e2d9
1 changed files with 1 additions and 0 deletions

View File

@ -1807,6 +1807,7 @@ void APPEARANCE_CONTROLS::onObjectVisibilityChanged( GAL_LAYER_ID aLayer, bool i
PCB_DISPLAY_OPTIONS opt = m_frame->GetDisplayOptions();
opt.m_ShowGlobalRatsnest = isVisible;
m_frame->SetDisplayOptions( opt );
m_frame->GetBoard()->SetElementVisibility( aLayer, isVisible );
m_frame->GetCanvas()->RedrawRatsnest();
}