forked from qt-creator/qt-creator
TaskTree: Rename StopWithDone -> StopWithSuccess
Make naming consistent with recent changes. "Done" is meant to be an event name when the task / group finishes. "Done" may finish with "Success" or an "Error". This addresses the 26th point in the task below. Task-number: QTCREATORBUG-28741 Change-Id: I53ed6905b1c385c398f49e122e8ca60aa3ad0806 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -127,7 +127,7 @@ Q_ENUM_NS(WorkflowPolicy);
|
||||
enum class SetupResult
|
||||
{
|
||||
Continue,
|
||||
StopWithDone,
|
||||
StopWithSuccess,
|
||||
StopWithError
|
||||
};
|
||||
Q_ENUM_NS(SetupResult);
|
||||
@@ -352,10 +352,10 @@ private:
|
||||
static_assert(isBool || isVoid,
|
||||
"Sync element: The synchronous function has to return void or bool.");
|
||||
if constexpr (isBool) {
|
||||
return onGroupSetup([function] { return function() ? SetupResult::StopWithDone
|
||||
return onGroupSetup([function] { return function() ? SetupResult::StopWithSuccess
|
||||
: SetupResult::StopWithError; });
|
||||
}
|
||||
return onGroupSetup([function] { function(); return SetupResult::StopWithDone; });
|
||||
return onGroupSetup([function] { function(); return SetupResult::StopWithSuccess; });
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user