mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
1
AUTHORS
1
AUTHORS
|
@ -72,4 +72,5 @@ suggestions:
|
|||
Erlan Sergaziev
|
||||
Eric Fluger
|
||||
Steve Rader
|
||||
Andy Kriger
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
month to be displayed in the calendar report (thanks to Michelle Crane).
|
||||
+ Added feature #574, default due dates (thanks to Erlan Sergaziev).
|
||||
+ Added feature #575, including Danish holidays (thanks to Irfan Siddiqui).
|
||||
+ Added feature #608, and now completing a task, with journal.time turned on
|
||||
will stop the task first (thanks to Andy Kriger).
|
||||
+ Eliminated dependency on ncurses.
|
||||
+ The dependency columns are now right-justified (thanks to Eric Fluger).
|
||||
+ Fixed bug that caused the 'done' command to always exit with a non-zero
|
||||
|
|
|
@ -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