mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Frame needs an extra kick to toggle grid visibility.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21409
This commit is contained in:
parent
321b5793a2
commit
dc7312efd6
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user