| @@ -52,9 +52,6 @@ static void fuzzySearchInit() { | |||||
| for (plugin::Plugin* plugin : plugin::plugins) { | for (plugin::Plugin* plugin : plugin::plugins) { | ||||
| // Iterate model in plugin | // Iterate model in plugin | ||||
| for (plugin::Model* model : plugin->models) { | for (plugin::Model* model : plugin->models) { | ||||
| if (model->hidden) | |||||
| continue; | |||||
| // Get search fields for model | // Get search fields for model | ||||
| std::string tagStr; | std::string tagStr; | ||||
| for (int tagId : model->tagIds) { | for (int tagId : model->tagIds) { | ||||
| @@ -534,9 +531,6 @@ struct ModuleBrowser : widget::OpaqueWidget { | |||||
| // Iterate models in plugin | // Iterate models in plugin | ||||
| int modelIndex = 0; | int modelIndex = 0; | ||||
| for (plugin::Model* model : plugin->models) { | for (plugin::Model* model : plugin->models) { | ||||
| if (model->hidden) | |||||
| continue; | |||||
| // Don't show module if plugin whitelist exists but the module is not in it. | // Don't show module if plugin whitelist exists but the module is not in it. | ||||
| if (pluginIt != settings::moduleWhitelist.end()) { | if (pluginIt != settings::moduleWhitelist.end()) { | ||||
| auto moduleIt = std::find(pluginIt->second.begin(), pluginIt->second.end(), model->slug); | auto moduleIt = std::find(pluginIt->second.begin(), pluginIt->second.end(), model->slug); | ||||
| @@ -586,6 +580,10 @@ struct ModuleBrowser : widget::OpaqueWidget { | |||||
| } | } | ||||
| bool isModelVisible(plugin::Model* model, const std::string& brand, std::set<int> tagIds) { | bool isModelVisible(plugin::Model* model, const std::string& brand, std::set<int> tagIds) { | ||||
| // Filter hidden | |||||
| if (model->hidden) | |||||
| return false; | |||||
| // Filter brand | // Filter brand | ||||
| if (!brand.empty()) { | if (!brand.empty()) { | ||||
| if (model->plugin->brand != brand) | if (model->plugin->brand != brand) | ||||