Show link to log while building for currently building build.

Signed-off-by: AMZN-Phil <pconroy@amazon.com>
main
AMZN-Phil 4 years ago
parent 8ef87dc998
commit 443e8071e7

@ -72,6 +72,7 @@ namespace O3DE::ProjectManager
{
m_projectButton->SetButtonOverlayText(QString("%1 (%2%)\n\n").arg(tr("Building Project..."), QString::number(progress)));
m_projectButton->SetProgressBarValue(progress);
m_projectButton->ShowBuildLogsLink(true, m_worker->GetLogFilePath());
}
}

@ -266,6 +266,18 @@ namespace O3DE::ProjectManager
SetProjectButtonAction(tr("Build Project"), [this]() { emit BuildProject(m_projectInfo); });
}
void ProjectButton::ShowBuildLogsLink(bool show, const QUrl& logUrl)
{
if (!logUrl.isEmpty())
{
m_projectImageLabel->GetWarningLabel()->setText(tr("Click to <a href=\"logs\">view logs</a>."));
}
m_projectImageLabel->GetWarningLabel()->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
m_projectImageLabel->GetWarningLabel()->setVisible(show);
m_projectImageLabel->SetLogUrl(logUrl);
}
void ProjectButton::ShowBuildFailed(bool show, const QUrl& logUrl)
{
if (!logUrl.isEmpty())

@ -77,6 +77,7 @@ namespace O3DE::ProjectManager
void SetProjectButtonAction(const QString& text, AZStd::function<void()> lambda);
void SetProjectBuildButtonAction();
void ShowBuildLogsLink(bool show, const QUrl& logUrl);
void ShowBuildFailed(bool show, const QUrl& logUrl);
void SetLaunchButtonEnabled(bool enabled);

Loading…
Cancel
Save