[libcalamaresui] Refactor Requirements classes

- improve naming of member variables
 - expand documentation
This commit is contained in:
Adriaan de Groot 2019-02-15 20:53:55 +01:00
parent 43eae0bc47
commit d33752c66c
3 changed files with 26 additions and 18 deletions

View file

@ -317,7 +317,7 @@ ModuleManager::checkRequirements()
for (const auto& module : m_loadedModulesByInstanceKey )
{
auto l = module->checkRequirements();
RequirementsList l = module->checkRequirements();
if ( l.length() > 0 )
{
cDebug() << " .." << module->name() << l.length() << "requirements";
@ -325,7 +325,7 @@ ModuleManager::checkRequirements()
}
for (const auto& r : l)
{
if (r.required && !r.checked)
if ( r.mandatory && !r.satisfied )
acceptable = false;
}
}