mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
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:
parent
109f22051d
commit
c08c280dd9
3 changed files with 8 additions and 0 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue