Frame needs an extra kick to toggle grid visibility.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21409
This commit is contained in:
Jeff Young 2025-08-04 21:18:31 +01:00
parent 321b5793a2
commit dc7312efd6

View File

@ -1341,6 +1341,7 @@ void APPEARANCE_CONTROLS::setVisibleObjects( GAL_SET aLayers )
if( m_frame->IsType( FRAME_PCB_EDITOR ) )
aLayers.set( LAYER_RATSNEST, m_frame->GetPcbNewSettings()->m_Display.m_ShowGlobalRatsnest );
m_frame->SetGridVisibility( aLayers.test( LAYER_GRID - GAL_LAYER_ID_START ) );
m_frame->GetBoard()->SetVisibleElements( aLayers );
m_frame->Update3DView( true, m_frame->GetPcbNewSettings()->m_Display.m_Live3DRefresh );