[libcalamaresui] Only load config file if there is one
- finally, no more warnings for modules that are NO_CONFIG (or noconfig: true) and don't have a config file.
This commit is contained in:
parent
f366e3840f
commit
83ffbd5126
@ -155,6 +155,8 @@ Module::fromDescriptor( const Calamares::ModuleSystem::Descriptor& moduleDescrip
|
|||||||
}
|
}
|
||||||
|
|
||||||
m->initFrom( moduleDescriptor );
|
m->initFrom( moduleDescriptor );
|
||||||
|
if ( !configFileName.isEmpty() )
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m->loadConfigurationFile( configFileName );
|
m->loadConfigurationFile( configFileName );
|
||||||
@ -164,6 +166,7 @@ Module::fromDescriptor( const Calamares::ModuleSystem::Descriptor& moduleDescrip
|
|||||||
cError() << "YAML parser error " << e.what();
|
cError() << "YAML parser error " << e.what();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return m.release();
|
return m.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user