Merge branch '0929frontend' into 'new-frontend'

Fix:Application items cannot be found by using Pinyin and initials when the...

See merge request kylin-desktop/ukui-search!158
This commit is contained in:
PengfeiZhang 2021-10-08 07:24:30 +00:00
commit 7c0e9f55a2
1 changed files with 4 additions and 1 deletions

View File

@ -163,8 +163,11 @@ void AppMatch::appNameMatch(QString keyWord, size_t uniqueSymbol, DataQueue<Sear
}
}
if(iter.value().at(3) == ""){
continue;
}
QStringList pinyinlist;
pinyinlist = FileUtils::findMultiToneWords(iter.key().app_name);
pinyinlist = FileUtils::findMultiToneWords(iter.value().at(3));
bool matched = false;
for(int i = 0; i < pinyinlist.size() / 2; i++) {