mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
TW-1488: You have more urgent tasks
- Thanks to Stefan Betz, Denis Kasak.
This commit is contained in:
parent
8ad5fa1b78
commit
326367a36e
3 changed files with 6 additions and 2 deletions
|
@ -422,11 +422,13 @@ bool nag (Task& task)
|
|||
std::string nagMessage = context.config.get ("nag");
|
||||
if (nagMessage != "")
|
||||
{
|
||||
// Scan all pending tasks.
|
||||
// Scan all pending, non-recurring tasks.
|
||||
auto pending = context.tdb2.pending.get_tasks ();
|
||||
for (auto& t : pending)
|
||||
{
|
||||
if (t.urgency () > task.urgency ())
|
||||
if ((t.getStatus () == Task::pending ||
|
||||
t.getStatus () == Task::waiting) &&
|
||||
t.urgency () > task.urgency ())
|
||||
{
|
||||
context.footnote (nagMessage);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue