Allow teardrops only if advanced config define AllowTeardrops=1

This commit is contained in:
jean-pierre charras 2021-12-19 09:09:25 +01:00
parent d42514ad30
commit 5644f236d8
1 changed files with 10 additions and 6 deletions

View File

@ -402,12 +402,16 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
toolsMenu->Add( ACTIONS::showFootprintEditor );
toolsMenu->Add( PCB_ACTIONS::updateFootprints );
toolsMenu->AppendSeparator();
toolsMenu->Add( _( "Add Teardrops" ), "",
ID_RUN_TEARDROP_TOOL, BITMAPS::via );
toolsMenu->Add( _( "Remove Teardrops" ), "",
ID_REMOVE_TEARDROP_TOOL, BITMAPS::via );
// Currently: available only with advanced_config m_AllowTeardrops = true
// (AllowTeardrops = 1)
if( ADVANCED_CFG::GetCfg().m_AllowTeardrops )
{
toolsMenu->AppendSeparator();
toolsMenu->Add( _( "Add Teardrops" ), "",
ID_RUN_TEARDROP_TOOL, BITMAPS::via );
toolsMenu->Add( _( "Remove Teardrops" ), "",
ID_REMOVE_TEARDROP_TOOL, BITMAPS::via );
}
toolsMenu->AppendSeparator();
toolsMenu->Add( PCB_ACTIONS::cleanupTracksAndVias );