Browse Source

Search descriptions

pull/1556/head
Dmitry Wolf 5 years ago
parent
commit
345ad6f2fa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/app/ModuleBrowser.cpp

+ 2
- 0
src/app/ModuleBrowser.cpp View File

@@ -53,6 +53,8 @@ static float modelScore(plugin::Model* model, const std::string& search) {
s += alias; s += alias;
} }
} }
s += " ";
s += model->description;
float score = string::fuzzyScore(string::lowercase(s), string::lowercase(search)); float score = string::fuzzyScore(string::lowercase(s), string::lowercase(search));
return score; return score;
} }


Loading…
Cancel
Save