Remove Project ID field from New Project settings
Signed-off-by: nggieber <52797929+AMZN-nggieber@users.noreply.github.com>
This commit is contained in:
@@ -60,10 +60,6 @@ namespace O3DE::ProjectManager
|
||||
connect(m_projectPath->lineEdit(), &QLineEdit::textChanged, this, &ProjectSettingsScreen::OnProjectPathUpdated);
|
||||
m_verticalLayout->addWidget(m_projectPath);
|
||||
|
||||
m_projectId = new FormLineEditWidget(tr("Project ID"), "", this);
|
||||
connect(m_projectId->lineEdit(), &QLineEdit::textChanged, this, &ProjectSettingsScreen::OnProjectIdUpdated);
|
||||
m_verticalLayout->addWidget(m_projectId);
|
||||
|
||||
projectSettingsFrame->setLayout(m_verticalLayout);
|
||||
|
||||
m_horizontalLayout->addWidget(projectSettingsFrame);
|
||||
@@ -98,7 +94,6 @@ namespace O3DE::ProjectManager
|
||||
// currently we don't have separate fields for changing the project name and display name
|
||||
projectInfo.m_displayName = projectInfo.m_projectName;
|
||||
projectInfo.m_path = m_projectPath->lineEdit()->text();
|
||||
projectInfo.m_id = m_projectId->lineEdit()->text();
|
||||
return projectInfo;
|
||||
}
|
||||
|
||||
@@ -147,19 +142,6 @@ namespace O3DE::ProjectManager
|
||||
return projectPathIsValid;
|
||||
}
|
||||
|
||||
bool ProjectSettingsScreen::ValidateProjectId()
|
||||
{
|
||||
bool projectIdIsValid = true;
|
||||
if (m_projectId->lineEdit()->text().isEmpty())
|
||||
{
|
||||
projectIdIsValid = false;
|
||||
m_projectId->setErrorLabelText(tr("Project ID cannot be empty."));
|
||||
}
|
||||
|
||||
m_projectId->setErrorLabelVisible(!projectIdIsValid);
|
||||
return projectIdIsValid;
|
||||
}
|
||||
|
||||
void ProjectSettingsScreen::OnProjectNameUpdated()
|
||||
{
|
||||
ValidateProjectName();
|
||||
@@ -170,13 +152,8 @@ namespace O3DE::ProjectManager
|
||||
ValidateProjectName() && ValidateProjectPath();
|
||||
}
|
||||
|
||||
void ProjectSettingsScreen::OnProjectIdUpdated()
|
||||
{
|
||||
ValidateProjectId();
|
||||
}
|
||||
|
||||
bool ProjectSettingsScreen::Validate()
|
||||
{
|
||||
return ValidateProjectName() && ValidateProjectPath() && ValidateProjectId();
|
||||
return ValidateProjectName() && ValidateProjectPath();
|
||||
}
|
||||
} // namespace O3DE::ProjectManager
|
||||
|
||||
Reference in New Issue
Block a user