MCPcopy Create free account
hub / github.com/apohl79/audiogridder / rescanPluginItems

Method rescanPluginItems

Server/Source/PluginListComponent.cpp:295–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void 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
317PopupMenu PluginListComponent::createMenuForRow(int rowNumber) {
318 PopupMenu menu;

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
saveKnownPluginListMethod · 0.80
sizeMethod · 0.45
getServerMethod · 0.45

Tested by

no test coverage detected