mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
Recurrence: Broke out handleUntil as a separate function
- This means until porocesing is no longer controlled by rc.recurrence, which was never intended.
This commit is contained in:
parent
e991004c43
commit
97b038ce29
14 changed files with 40 additions and 12 deletions
|
@ -139,18 +139,6 @@ void handleRecurrence ()
|
|||
context.footnote (format (STRING_RECUR_CREATE, t.get ("description")));
|
||||
}
|
||||
}
|
||||
|
||||
// Non-recurring tasks expire too.
|
||||
else
|
||||
{
|
||||
if (t.has ("until") &&
|
||||
Datetime (t.get_date ("until")) < now)
|
||||
{
|
||||
t.setStatus (Task::deleted);
|
||||
context.tdb2.modify(t);
|
||||
context.footnote (onExpiration (t));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue