Fix a few issues with library start wizard

- Improve text layout / responsiveness
- Fix missing stock tables warning not showing up in the right cases

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22923
This commit is contained in:
Jon Evans
2026-03-10 08:48:04 -04:00
parent 10592c242d
commit 270a6830b0
6 changed files with 44 additions and 9 deletions
+12 -1
View File
@@ -346,6 +346,17 @@ wxString LIBRARY_MANAGER::DefaultGlobalTablePath( LIBRARY_TABLE_TYPE aType )
}
wxString LIBRARY_MANAGER::StockTablePath( LIBRARY_TABLE_TYPE aType )
{
wxString basePath = PATHS::GetStockTemplatesPath();
wxFileName fn( basePath, tableFileName( aType ) );
fn.Normalize( FN_NORMALIZE_FLAGS | wxPATH_NORM_ENV_VARS );
return fn.GetFullPath();
}
bool LIBRARY_MANAGER::IsTableValid( const wxString& aPath )
{
if( wxFileName fn( aPath ); fn.IsFileReadable() )
@@ -393,7 +404,7 @@ bool LIBRARY_MANAGER::CreateGlobalTable( LIBRARY_TABLE_TYPE aType, bool aPopulat
table.SetType( aType );
table.Rows().clear();
wxFileName defaultLib( PATHS::GetStockTemplatesPath(), tableFileName( aType ) );
wxFileName defaultLib( StockTablePath( aType ) );
if( !defaultLib.IsFileReadable() )
{