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

Method removePluginItems

Server/Source/PluginListComponent.cpp:246–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void 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
262void PluginListComponent::addPluginItems(const std::vector<int> indexes) {
263 auto types = m_list.getTypes();

Callers 1

deleteKeyPressedMethod · 0.80

Calls 3

sizeMethod · 0.45
getServerMethod · 0.45
saveConfigMethod · 0.45

Tested by

no test coverage detected