Do not show footprint wizard menu when scripting is disabled

This commit is contained in:
Thomas Pointhuber 2018-08-25 18:30:34 +02:00 committed by jean-pierre charras
parent 72f87861bb
commit 92cd82be03
2 changed files with 4 additions and 0 deletions

View File

@ -66,8 +66,10 @@ FOOTPRINT_TREE_PANE::FOOTPRINT_TREE_PANE( FOOTPRINT_EDIT_FRAME* aParent )
menuLibrary->AppendSeparator();
AddMenuItem( menuLibrary.get(), ID_MODEDIT_NEW_MODULE, _( "New &Footprint..." ),
KiBitmap( new_component_xpm ) );
#ifdef KICAD_SCRIPTING
AddMenuItem( menuLibrary.get(), ID_MODEDIT_NEW_MODULE_FROM_WIZARD, _( "&Create Footprint..." ),
KiBitmap( new_component_xpm ) );
#endif
AddMenuItem( menuLibrary.get(), ID_MODEDIT_IMPORT_PART, _( "&Import Footprint..." ),
KiBitmap( import_part_xpm ) );

View File

@ -70,10 +70,12 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
text, _( "Create a new footprint" ),
KiBitmap( new_footprint_xpm ) );
#ifdef KICAD_SCRIPTING
AddMenuItem( fileMenu, ID_MODEDIT_NEW_MODULE_FROM_WIZARD,
_( "&Create Footprint..." ),
_( "Create a new footprint using the footprint wizard" ),
KiBitmap( module_wizard_xpm ) );
#endif
fileMenu->AppendSeparator();