Nag based on task state before modification

With this patch, taskwarrior uses the urgency of tasks before any
modifications are applied when deciding whether to show nag messages.

Previously, taskwarrior would apply modifications before deciding
whether to show nag messages, which could lead to spurious nag messages
when completing an active task.
This commit is contained in:
Korrat 2021-07-22 17:08:00 +02:00 committed by Tomas Babej
parent 607baa081d
commit b33a99a748
5 changed files with 98 additions and 33 deletions

View file

@ -48,7 +48,7 @@ void updateRecurrenceMask (Task&);
void handleRecurrence2 ();
// nag.cpp
bool nag (Task&);
void nag (std::vector <Task>&);
// rules.cpp
void initializeColorRules ();