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:
@@ -219,11 +219,13 @@ namespace O3DE::ProjectManager
|
||||
// Move project first to avoid trying to update settings at the new location before it has been moved there
|
||||
if (newProjectSettings.m_path != m_projectInfo.m_path)
|
||||
{
|
||||
if (!ProjectUtils::MoveProject(m_projectInfo.m_path, newProjectSettings.m_path))
|
||||
if (!ProjectUtils::MoveProject(m_projectInfo.m_path, newProjectSettings.m_path, this))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Project move failed"), tr("Failed to move project."));
|
||||
return false;
|
||||
}
|
||||
|
||||
emit NotifyBuildProject(newProjectSettings);
|
||||
}
|
||||
|
||||
// Update project if settings changed
|
||||
|
||||
Reference in New Issue
Block a user