mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-06 17:37:21 +02:00
Make TDB2.backlog non-public
The stats command gets this information from an API that will also work for TaskChampion. The sync command still accesses the field directly, as the command must be completely rewritten for TaskChampion.
This commit is contained in:
parent
d699ce8cba
commit
c8cfcec48b
6 changed files with 37 additions and 28 deletions
|
@ -90,13 +90,8 @@ bool getDOM (const std::string& name, Variant& value)
|
|||
if (name == "tw.syncneeded")
|
||||
{
|
||||
value = Variant (0);
|
||||
for (const auto& line : Context::getContext ().tdb2.backlog.get_lines ())
|
||||
{
|
||||
if (line[0] == '{')
|
||||
{
|
||||
value = Variant (1);
|
||||
break;
|
||||
}
|
||||
if (Context::getContext ().tdb2.num_local_changes () > 0) {
|
||||
value = Variant (1);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue