From 728ef8a61c903fdc4adcb341f66ba088ddc58a14 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 20 Sep 2022 21:48:38 -0400 Subject: [PATCH] Hide properties panel menu entry if flag isn't set --- pcbnew/menubar_pcb_editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/menubar_pcb_editor.cpp b/pcbnew/menubar_pcb_editor.cpp index 6bfaef7007..2326d6c44d 100644 --- a/pcbnew/menubar_pcb_editor.cpp +++ b/pcbnew/menubar_pcb_editor.cpp @@ -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 );