|
|
@@ -55,7 +55,9 @@ struct MetadataMenu : ListMenu { |
|
|
|
// Tag list |
|
|
|
if (!model->tags.empty()) { |
|
|
|
for (ModelTag tag : model->tags) { |
|
|
|
addChild(construct<MenuLabel>(&MenuEntry::text, gTagNames[tag])); |
|
|
|
if (0 <= tag && tag < NUM_TAGS) { |
|
|
|
addChild(construct<MenuLabel>(&MenuEntry::text, gTagNames[tag])); |
|
|
|
} |
|
|
|
} |
|
|
|
addChild(construct<MenuEntry>()); |
|
|
|
} |
|
|
@@ -95,8 +97,10 @@ static bool isModelMatch(Model *model, std::string search) { |
|
|
|
str += " "; |
|
|
|
str += model->slug; |
|
|
|
for (ModelTag tag : model->tags) { |
|
|
|
str += " "; |
|
|
|
str += gTagNames[tag]; |
|
|
|
if (0 <= tag && tag < NUM_TAGS) { |
|
|
|
str += " "; |
|
|
|
str += gTagNames[tag]; |
|
|
|
} |
|
|
|
} |
|
|
|
str = tolower(str); |
|
|
|
search = tolower(search); |
|
|
|