Remove some code duplication

Signed-off-by: AMZN-Phil <pconroy@amazon.com>
This commit is contained in:
AMZN-Phil
2021-11-15 11:50:28 -08:00
parent 07c142b975
commit 18cf128854
5 changed files with 15 additions and 10 deletions
@@ -295,8 +295,7 @@ namespace O3DE::ProjectManager
bool projectBuiltSuccessfully = false;
if (settingsRegistry)
{
QString settingsKey =
QString("%1/Projects/%2/BuiltSuccesfully").arg(ProjectManagerKeyPrefix).arg(project.m_projectName);
QString settingsKey = GetProjectBuiltSuccessfullyKey(project.m_projectName);
settingsRegistry->Get(projectBuiltSuccessfully, settingsKey.toStdString().c_str());
}
if (!projectBuiltSuccessfully)