Exclude database libraries from the symbol library editor

These libraries are metadata libraries and it does not make sense
to have them be shown in the symbol editor

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12842
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12878
This commit is contained in:
Jon Evans 2023-01-22 20:49:41 -05:00
parent e419b0bfe8
commit e7a4d6d4da
1 changed files with 6 additions and 0 deletions

View File

@ -134,7 +134,13 @@ wxArrayString SYMBOL_LIBRARY_MANAGER::GetLibraryNames() const
wxArrayString res;
for( const wxString& libName : symTable()->GetLogicalLibs() )
{
// Database libraries are hidden from the symbol editor at the moment
if( GetLibrary( libName )->SchLibType() == SCH_IO_MGR::SCH_DATABASE )
continue;
res.Add( libName );
}
return res;
}