Draft version for per user search paths config (LibraryPath1, 2... in .kicad_common)

This commit is contained in:
Vovanium 2010-10-30 06:30:21 +04:00
parent 2c69cd319b
commit a6a7560562
1 changed files with 12 additions and 0 deletions

View File

@ -626,6 +626,18 @@ void WinEDA_App::GetSettings(bool aReopenLastUsedDirectory)
}
m_EDA_Config->Read( wxT( "BgColor" ), &g_DrawBgColor );
/* Load per-user search paths from settings file */
wxString upath;
int i = 1;
while( 1 )
{
upath = m_EDA_CommonConfig->Read( wxString::Format( wxT( "LibraryPath%d" ), i ), wxT( "" ) );
if( upath.IsSameAs( wxT( "" ) ) ) break;
m_libSearchPaths.Add( upath );
i ++;
}
}