Browse Source

Remove tag corruption workaround

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
ce909cda63
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      src/app/AddModuleWindow.cpp

+ 3
- 7
src/app/AddModuleWindow.cpp View File

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


Loading…
Cancel
Save