Do not show footprint wizard menu when scripting is disabled
This commit is contained in:
parent
72f87861bb
commit
92cd82be03
|
@ -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 ) );
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue