Hide properties panel menu entry if flag isn't set

This commit is contained in:
Jon Evans 2022-09-20 21:48:38 -04:00
parent 513fc872bb
commit 728ef8a61c
1 changed files with 4 additions and 1 deletions

View File

@ -228,7 +228,10 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
ACTION_MENU* viewMenu = new ACTION_MENU( false, selTool );
viewMenu->Add( PCB_ACTIONS::showLayersManager, ACTION_MENU::CHECK );
viewMenu->Add( PCB_ACTIONS::showProperties, ACTION_MENU::CHECK );
if( ADVANCED_CFG::GetCfg().m_ShowPropertiesPanel )
viewMenu->Add( PCB_ACTIONS::showProperties, ACTION_MENU::CHECK );
viewMenu->Add( PCB_ACTIONS::showSearch, ACTION_MENU::CHECK );
viewMenu->Add( ACTIONS::showFootprintBrowser );
viewMenu->Add( ACTIONS::show3DViewer );