Draft version for per user search paths config (LibraryPath1, 2... in .kicad_common)
This commit is contained in:
parent
2c69cd319b
commit
a6a7560562
|
@ -626,6 +626,18 @@ void WinEDA_App::GetSettings(bool aReopenLastUsedDirectory)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_EDA_Config->Read( wxT( "BgColor" ), &g_DrawBgColor );
|
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 ++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue