Feature #608
- Added feature #608, and now completing a task, with journal.time turned on will stop the task first (thanks to Andy Kriger).
This commit is contained in:
@@ -1862,6 +1862,11 @@ int handleDone (std::string& outs)
|
||||
// Change status.
|
||||
task->setStatus (Task::completed);
|
||||
|
||||
// Stop the task, if started.
|
||||
if (task->has ("start") &&
|
||||
context.config.getBoolean ("journal.time"))
|
||||
task->addAnnotation (context.config.get ("journal.time.stop.annotation"));
|
||||
|
||||
// Only allow valid tasks.
|
||||
task->validate ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user