Change ProjectSettings to Singleton interface

Signed-off-by: nggieber <52797929+AMZN-nggieber@users.noreply.github.com>
This commit is contained in:
nggieber
2021-12-09 09:24:01 -08:00
parent c7893e0386
commit d7a3d63457
15 changed files with 383 additions and 340 deletions
@@ -16,7 +16,7 @@
#include <UpdateProjectSettingsScreen.h>
#include <ProjectUtils.h>
#include <DownloadController.h>
#include <ProjectManagerSettings.h>
#include <SettingsInterface.h>
#include <QDialogButtonBox>
#include <QMessageBox>
@@ -307,8 +307,9 @@ namespace O3DE::ProjectManager
{
// Remove project build successfully paths for both old and new project names
// because a full rebuild is required when moving projects
PMSettings::SetProjectBuiltSuccessfully(m_projectInfo, false);
PMSettings::SetProjectBuiltSuccessfully(newProjectSettings, false);
auto settings = SettingsInterface::Get();
settings->SetProjectBuiltSuccessfully(m_projectInfo, false);
settings->SetProjectBuiltSuccessfully(newProjectSettings, false);
}
if (!newProjectSettings.m_newPreviewImagePath.isEmpty())