| 244 | } |
| 245 | |
| 246 | void PluginListComponent::removePluginItems(const std::vector<int> indexes) { |
| 247 | auto types = m_list.getTypes(); |
| 248 | |
| 249 | for (int index : indexes) { |
| 250 | if (index < types.size()) { |
| 251 | auto p = types[index]; |
| 252 | m_excludeList.insert(p.fileOrIdentifier); |
| 253 | m_list.removeType(p); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | if (auto srv = getApp()->getServer()) { |
| 258 | srv->saveConfig(); |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | void PluginListComponent::addPluginItems(const std::vector<int> indexes) { |
| 263 | auto types = m_list.getTypes(); |
no test coverage detected