Merge pull request #238 from sunfengsheng/main

Can search kde,mate,LX
This commit is contained in:
Mouse Zhang 2021-05-20 08:59:30 +08:00 committed by GitHub
commit a7c098934c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -102,12 +102,12 @@ void AppMatch::getAllDesktopFilePath(QString path) {
} else { } else {
//过滤LXQt、KDE //过滤LXQt、KDE
QString filePathStr = fileInfo.filePath(); QString filePathStr = fileInfo.filePath();
if(filePathStr.contains("KDE", Qt::CaseInsensitive) || // if(filePathStr.contains("KDE", Qt::CaseInsensitive) ||
// filePathStr.contains("mate",Qt::CaseInsensitive)|| // filePathStr.contains("mate",Qt::CaseInsensitive)||
filePathStr.contains("LX", Qt::CaseInsensitive)) { // filePathStr.contains("LX", Qt::CaseInsensitive)) {
i++; // i++;
continue; // continue;
} // }
//过滤后缀不是.desktop的文件 //过滤后缀不是.desktop的文件
if(!filePathStr.endsWith(".desktop")) { if(!filePathStr.endsWith(".desktop")) {
i++; i++;