mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 21:27:19 +02:00
TF2: Upgrade waiting tasks to pending, if applicable
This can be safely removed in one of the later releases (likely 3.1 or later).
This commit is contained in:
parent
901283c79f
commit
db324c41e3
1 changed files with 8 additions and 0 deletions
|
@ -355,6 +355,14 @@ void TF2::load_gc (Task& task)
|
|||
{
|
||||
Context::getContext ().tdb2.pending._tasks.push_back (task);
|
||||
}
|
||||
// 2.6.0: Waiting status is deprecated. Convert to pending to upgrade status
|
||||
// field value in the data files.
|
||||
else if (status == "waiting")
|
||||
{
|
||||
task.set ("status", "pending");
|
||||
Context::getContext ().tdb2.pending._tasks.push_back (task);
|
||||
Context::getContext ().tdb2.pending._dirty = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Context::getContext ().tdb2.completed._tasks.push_back (task);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue