mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 06:10:36 +02:00
TW #1973: Don't nag when no tasks are READY
- Thanks to Martin F. Krafft
This commit is contained in:
parent
f37e98765b
commit
d312775f99
4 changed files with 36 additions and 15 deletions
|
@ -47,8 +47,9 @@ bool nag (Task& task)
|
|||
auto pending = Context::getContext ().tdb2.pending.get_tasks ();
|
||||
for (auto& t : pending)
|
||||
{
|
||||
if ((t.getStatus () == Task::pending ||
|
||||
if ((t.getStatus () == Task::pending ||
|
||||
t.getStatus () == Task::waiting) &&
|
||||
t.hasTag ("READY") &&
|
||||
t.urgency () > task.urgency ())
|
||||
{
|
||||
Context::getContext ().footnote (msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue