Remove non-existant BOM plugins

Fixes https://gitlab.com/kicad/code/kicad/issues/7053
This commit is contained in:
Seth Hillbrand 2021-01-11 13:50:01 -08:00
parent c09dc5abdd
commit e4c77f3a47
1 changed files with 3 additions and 0 deletions

View File

@ -332,6 +332,9 @@ void DIALOG_BOM::installGeneratorsList()
// Populate list box // Populate list box
for( unsigned ii = 0; ii < m_generators.size(); ii++ ) for( unsigned ii = 0; ii < m_generators.size(); ii++ )
{ {
if( !m_generators[ii]->GetFile().Exists( wxFILE_EXISTS_REGULAR ) )
continue;
m_lbGenerators->Append( m_generators[ii]->GetName() ); m_lbGenerators->Append( m_generators[ii]->GetName() );
if( active_plugin_name == m_generators[ii]->GetName() ) if( active_plugin_name == m_generators[ii]->GetName() )