Create a default user projects folder

This commit is contained in:
Marek Roszko
2021-01-27 19:12:18 -05:00
parent 28c6967dbc
commit e6dd95e83a
6 changed files with 26 additions and 7 deletions
+14
View File
@@ -17,6 +17,7 @@ wxString PATHS::GetUserScriptingPath()
return tmp.GetFullPath();
}
wxString PATHS::GetUserTemplatesPath()
{
wxFileName tmp;
@@ -26,5 +27,18 @@ wxString PATHS::GetUserTemplatesPath()
tmp.AppendDir( SETTINGS_MANAGER::GetSettingsVersion() );
tmp.AppendDir( "templates" );
return tmp.GetFullPath();
}
wxString PATHS::GetDefaultUserProjectsPath()
{
wxFileName tmp;
tmp.AssignDir( KIPLATFORM::ENV::GetDocumentsDir() );
tmp.AppendDir( "kicad" );
tmp.AppendDir( SETTINGS_MANAGER::GetSettingsVersion() );
tmp.AppendDir( "projects" );
return tmp.GetFullPath();
}