| 95 | std::size_t ConfigurationManager::Size() const { return this->available_configurations.size(); } |
| 96 | |
| 97 | void ConfigurationManager::LoadAllConfigurations(const LayerManager &layers, ConfiguratorMode mode) { |
| 98 | this->available_configurations.clear(); |
| 99 | |
| 100 | if (RequireLoading(mode)) { |
| 101 | this->LoadConfigurationsPath(layers); |
| 102 | } |
| 103 | |
| 104 | // If built-in configurations were updated, replace the stored configuration |
| 105 | this->LoadDefaultConfigurations(layers); |
| 106 | |
| 107 | this->SortConfigurations(); |
| 108 | } |
| 109 | |
| 110 | void ConfigurationManager::LoadDefaultConfigurations(const LayerManager &layers) { |
| 111 | if (this->available_configurations.empty()) { |
no test coverage detected