Browse Source

Initialize grid visibility in appearance panel constructor

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8266
6.0.7
Jon Evans 5 years ago
parent
commit
263e026ac4
  1. 3
      pcbnew/widgets/appearance_controls.cpp

3
pcbnew/widgets/appearance_controls.cpp

@ -547,6 +547,9 @@ APPEARANCE_CONTROLS::APPEARANCE_CONTROLS( PCB_BASE_FRAME* aParent, wxWindow* aFo
rebuildObjects();
OnBoardChanged();
// Grid visibility is loaded and set to the GAL before we are constructed
SetObjectVisible( LAYER_GRID, m_frame->IsGridVisible() );
Bind( wxEVT_COMMAND_MENU_SELECTED, &APPEARANCE_CONTROLS::OnLayerContextMenu, this,
ID_CHANGE_COLOR, ID_LAST_VALUE );
}

Loading…
Cancel
Save