forked from qt-creator/qt-creator
TaskTree: Get rid of onGroupError element
Make it possible to setup onGroupDone element with additional OnDone argument. The onGroupDone handler may accept extra DoneResult argument. The onGroupDone handler may also tweak the success bit of a group. All above features conform to the behavior of the task done handler. Task-number: QTCREATORBUG-29834 Change-Id: I125bdfe155e585678fb33410632246401cbc9390 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -98,9 +98,12 @@ Tasking::GroupItem ConfigureStep::runRecipe()
|
||||
}
|
||||
return SetupResult::Continue;
|
||||
};
|
||||
const auto onDone = [this] { m_runConfigure = false; };
|
||||
|
||||
return Group { onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask() };
|
||||
return Group {
|
||||
onGroupSetup(onSetup),
|
||||
onGroupDone([this] { m_runConfigure = false; }, CallDoneIf::Success),
|
||||
defaultProcessTask()
|
||||
};
|
||||
}
|
||||
|
||||
// ConfigureStepFactory
|
||||
|
||||
Reference in New Issue
Block a user