MCPcopy Create free account
hub / github.com/VCVRack/Rack / hasVisibleModel

Method hasVisibleModel

src/app/Browser.cpp:671–678  ·  view source on GitHub ↗

Determines if there is at least 1 visible Model with a given brand and tag

Source from the content-addressed store, hash-verified

669
670 // Determines if there is at least 1 visible Model with a given brand and tag
671 bool hasVisibleModel(const std::string& brand, std::set<int> tagIds, bool favorite) {
672 for (const auto& pair : prefilteredModelScores) {
673 plugin::Model* model = pair.first;
674 if (isModelVisible(model, brand, tagIds, favorite))
675 return true;
676 }
677 return false;
678 };
679
680 template <typename F>
681 void sortModels(F f) {

Callers 1

onActionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected