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