bool SCreateContainerGroupSection::ShouldStartSectionWorkflow()

in GameLiftPlugin/Source/GameLiftPlugin/Private/SMenu/Containers/SCreateContainerGroupSection.cpp [308:321]


bool SCreateContainerGroupSection::ShouldStartSectionWorkflow() {
	UGameLiftContainersStatus* ContainersStatus = GetMutableDefault<UGameLiftContainersStatus>();
	if (ContainersStatus->DeploymentScenario == (int)EContainersDeploymentScenario::HaveContainerImageInEcr) {
		if (ContainersStatus->ContainerFleetDeploymentStatus == (int)EContainerFleetDeploymentStatus::DeploymentInProgress && !ContainersStatus->IsCgdConfigurationFinished) {
			return true;
		}
		return false;
	} else {
		if (ContainersStatus->ContainerFleetDeploymentStatus == (int)EContainerFleetDeploymentStatus::DeploymentInProgress && !ContainersStatus->IsCgdConfigurationFinished && ContainersStatus->IsContainerImagePushed) {
			return true;
		}
		return false;
	}
}