| 293 | } |
| 294 | |
| 295 | void PluginListComponent::rescanPluginItems(const std::vector<int> indexes) { |
| 296 | auto types = m_list.getTypes(); |
| 297 | int numTypes = types.size(); |
| 298 | int numBlacklistedFiles = m_list.getBlacklistedFiles().size(); |
| 299 | std::vector<String> ids; |
| 300 | |
| 301 | for (int index : indexes) { |
| 302 | if (index >= numTypes && index < (numTypes + numBlacklistedFiles)) { |
| 303 | index -= numTypes; |
| 304 | auto id = m_list.getBlacklistedFiles()[index]; |
| 305 | ids.push_back(id); |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | for (auto& id : ids) { |
| 310 | m_list.removeFromBlacklist(id); |
| 311 | if (auto srv = getApp()->getServer()) { |
| 312 | srv->saveKnownPluginList(); |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | PopupMenu PluginListComponent::createMenuForRow(int rowNumber) { |
| 318 | PopupMenu menu; |
nothing calls this directly
no test coverage detected