Skip to content

Commit

Permalink
CmdStart: Fix "make this task pending" note for completed tasks (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
drehak committed May 6, 2024
1 parent 9d9dde1 commit 0deeeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/CmdStart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ int CmdStart::execute (std::string&)
std::string question = format ("Start task {1} '{2}'?",
task.identifier (true),
task.get ("description"));
task.modify (Task::modAnnotate);
task.setAsNow ("start");

Task::status status = task.getStatus ();
Expand All @@ -93,6 +92,7 @@ int CmdStart::execute (std::string&)
task.setStatus (Task::pending);
}

task.modify (Task::modAnnotate);
if (Context::getContext ().config.getBoolean ("journal.time"))
task.addAnnotation (Context::getContext ().config.get ("journal.time.start.annotation"));

Expand Down

0 comments on commit 0deeeb0

Please sign in to comment.