Keep gem repos pages in sync

Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
This commit is contained in:
Alex Peterson
2021-11-04 09:37:26 -07:00
parent 861b29ffc7
commit 2f8de3e797
7 changed files with 56 additions and 8 deletions
@@ -51,13 +51,11 @@ namespace O3DE::ProjectManager
m_gemRepoScreen = new GemRepoScreen(this);
m_stack->addWidget(m_gemRepoScreen);
vLayout->addWidget(m_stack);
connect(m_gemCatalogScreen, &ScreenWidget::ChangeScreenRequest, this, &CreateProjectCtrl::OnChangeScreenRequest);
connect(
m_gemRepoScreen, &GemRepoScreen::OnRefresh,
[this]()
connect(m_gemRepoScreen, &GemRepoScreen::OnRefresh, [this]()
{
const QString projectTemplatePath = m_newProjectSettingsScreen->GetProjectTemplatePath();
m_gemCatalogScreen->Refresh(projectTemplatePath + "/Template");
@@ -135,6 +133,9 @@ namespace O3DE::ProjectManager
// Gather the enabled gems from the default project template when starting the create new project workflow.
ReinitGemCatalogForSelectedTemplate();
// make sure the gem repo has the latest details
m_gemRepoScreen->Reinit();
}
void CreateProjectCtrl::HandleBackButton()