Clear Build and Cache Directory After Project Move or Copy (#2184)
* Clear build and Cache directories when copying or moving projects Signed-off-by: nggieber <nggieber@amazon.com> * Updated tests for moving projects and Added tests for copying projects and skipping build files Signed-off-by: nggieber <nggieber@amazon.com> * Address PR feedback and fix a few minor UX issues, and request project be rebuild after copying or moving Signed-off-by: nggieber <nggieber@amazon.com> * Include ProjectInfo.h in ProjectUtils.h so linux will compile Signed-off-by: nggieber <nggieber@amazon.com>
This commit is contained in:
@@ -384,14 +384,17 @@ namespace O3DE::ProjectManager
|
||||
emit ChangeScreenRequest(ProjectManagerScreen::UpdateProject);
|
||||
}
|
||||
}
|
||||
void ProjectsScreen::HandleCopyProject(const QString& projectPath)
|
||||
void ProjectsScreen::HandleCopyProject(const ProjectInfo& projectInfo)
|
||||
{
|
||||
if (!WarnIfInBuildQueue(projectPath))
|
||||
if (!WarnIfInBuildQueue(projectInfo.m_path))
|
||||
{
|
||||
ProjectInfo newProjectInfo(projectInfo);
|
||||
|
||||
// Open file dialog and choose location for copied project then register copy with O3DE
|
||||
if (ProjectUtils::CopyProjectDialog(projectPath, this))
|
||||
if (ProjectUtils::CopyProjectDialog(projectInfo.m_path, newProjectInfo, this))
|
||||
{
|
||||
ResetProjectsContent();
|
||||
emit NotifyBuildProject(newProjectInfo);
|
||||
emit ChangeScreenRequest(ProjectManagerScreen::Projects);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user