forked from qt-creator/qt-creator
Axivion: Wrap initialization of fetchProjectInfo inside onSetup handler
Change-Id: I7245701a8e64d3f47eddf54c8c758937a8936a4c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -873,13 +873,16 @@ void AxivionPluginPrivate::fetchDashboardInfo(const DashboardInfoHandler &handle
|
|||||||
|
|
||||||
void AxivionPluginPrivate::fetchProjectInfo(const QString &projectName)
|
void AxivionPluginPrivate::fetchProjectInfo(const QString &projectName)
|
||||||
{
|
{
|
||||||
clearAllMarks();
|
const auto onSetup = [this, projectName] {
|
||||||
m_currentProjectInfo = {};
|
clearAllMarks();
|
||||||
m_analysisVersion = {};
|
m_currentProjectInfo = {};
|
||||||
if (projectName.isEmpty()) {
|
m_analysisVersion = {};
|
||||||
|
if (!projectName.isEmpty())
|
||||||
|
return SetupResult::Continue;
|
||||||
|
|
||||||
updateDashboard();
|
updateDashboard();
|
||||||
return;
|
return SetupResult::StopWithSuccess;
|
||||||
}
|
};
|
||||||
|
|
||||||
const auto onTaskTreeSetup = [this, projectName](TaskTree &taskTree) {
|
const auto onTaskTreeSetup = [this, projectName](TaskTree &taskTree) {
|
||||||
if (!m_dashboardInfo) {
|
if (!m_dashboardInfo) {
|
||||||
@@ -908,6 +911,7 @@ void AxivionPluginPrivate::fetchProjectInfo(const QString &projectName)
|
|||||||
};
|
};
|
||||||
|
|
||||||
const Group root {
|
const Group root {
|
||||||
|
onGroupSetup(onSetup),
|
||||||
authorizationRecipe(),
|
authorizationRecipe(),
|
||||||
TaskTreeTask(onTaskTreeSetup)
|
TaskTreeTask(onTaskTreeSetup)
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user