mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Improved the consistency of info output regarding recurring task parent and child tasks.
This commit is contained in:
parent
d8913c2f15
commit
d3ca5c04e3
1 changed files with 32 additions and 36 deletions
|
@ -470,9 +470,6 @@ int handleInfo (std::string &outs)
|
|||
}
|
||||
}
|
||||
|
||||
if (task->getStatus () == Task::recurring ||
|
||||
task->has ("parent"))
|
||||
{
|
||||
// recur
|
||||
if (task->has ("recur"))
|
||||
{
|
||||
|
@ -499,20 +496,19 @@ int handleInfo (std::string &outs)
|
|||
}
|
||||
|
||||
// mask
|
||||
if (task->has ("mask"))
|
||||
if (task->getStatus () == Task::recurring)
|
||||
{
|
||||
row = table.addRow ();
|
||||
table.addCell (row, 0, "Mask");
|
||||
table.addCell (row, 1, task->get ("mask"));
|
||||
}
|
||||
|
||||
// parent
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
// parent
|
||||
row = table.addRow ();
|
||||
table.addCell (row, 0, "Parent task");
|
||||
table.addCell (row, 1, task->get ("parent"));
|
||||
}
|
||||
|
||||
// imask
|
||||
row = table.addRow ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue