7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 11:01:41 +00:00

design blocks: point to new lib table on project change

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/19783
This commit is contained in:
Mike Williams 2025-02-03 10:24:46 -05:00
parent 8d858fe998
commit 45ba00ac22
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,8 @@ public:
TOOL_INTERACTIVE* GetContextMenuTool() override;
void SetLibTable( DESIGN_BLOCK_LIB_TABLE* aLibs ) { m_libs = aLibs; }
protected:
/**
* Constructor; takes a set of libraries to be included in the search.

View File

@ -265,6 +265,7 @@ void PANEL_DESIGN_BLOCK_CHOOSER::RefreshLibs( bool aProgress )
// Read the libraries from disk if they've changed
DESIGN_BLOCK_LIB_TABLE* fpTable = m_frame->Prj().DesignBlockLibs();
adapter->SetLibTable( fpTable );
// Sync FOOTPRINT_INFO list to the libraries on disk
if( aProgress )