From e7a4d6d4da94d10eb489976c2220be7ced601e1b Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 22 Jan 2023 20:49:41 -0500 Subject: [PATCH] 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 --- eeschema/symbol_library_manager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/symbol_library_manager.cpp b/eeschema/symbol_library_manager.cpp index 37cc2584bc..3e64ed56c0 100644 --- a/eeschema/symbol_library_manager.cpp +++ b/eeschema/symbol_library_manager.cpp @@ -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; }