Changed configuration option name and added documentation.

This commit is contained in:
DanielMowitz 2021-08-06 14:14:01 +02:00 committed by Tomas Babej
parent 1d804ae7c8
commit cb07e93ddd
3 changed files with 18 additions and 2 deletions

View file

@ -235,7 +235,17 @@ void Chart::scan (std::vector <Task>& tasks)
Datetime now;
time_t epoch;
bool cumulative = !Context::getContext ().config.getBoolean ("burndown.nc");
auto& config = Context::getContext ().config;
bool cumulative;
if (config.has ("burndown.cumulative"))
{
cumulative = config.getBoolean ("burndown.cumulative");
}
else
{
cumulative = true;
}
for (auto& task : tasks)
{
// The entry date is when the counting starts.