| 86 | } |
| 87 | |
| 88 | void Component::applyTo(LaunchProfile* profile) |
| 89 | { |
| 90 | // do not apply disabled components |
| 91 | if(!isEnabled()) |
| 92 | { |
| 93 | return; |
| 94 | } |
| 95 | auto vfile = getVersionFile(); |
| 96 | if(vfile) |
| 97 | { |
| 98 | vfile->applyTo(profile, m_parent->runtimeContext()); |
| 99 | } |
| 100 | else |
| 101 | { |
| 102 | profile->applyProblemSeverity(getProblemSeverity()); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | std::shared_ptr<class VersionFile> Component::getVersionFile() const |
| 107 | { |
no test coverage detected