mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Config: Migrated to libshared Configuration
This commit is contained in:
parent
a31434fd48
commit
dd4fef6794
9 changed files with 19 additions and 125 deletions
|
@ -1071,9 +1071,7 @@ void Context::staticInitialization ()
|
|||
Task::urgencyAgeMax = config.getReal ("urgency.age.max");
|
||||
|
||||
// Tag- and project-specific coefficients.
|
||||
std::vector <std::string> all;
|
||||
config.all (all);
|
||||
for (auto& var : all)
|
||||
for (auto& var : config.all ())
|
||||
if (var.substr (0, 13) == "urgency.user." ||
|
||||
var.substr (0, 12) == "urgency.uda.")
|
||||
Task::coefficients[var] = config.getReal (var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue