Determines if there is at least 1 visible Model with a given brand and tag
| 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) { |