From 27da9f3a0ea7df373e714c6fbf888ac62e934c86 Mon Sep 17 00:00:00 2001 From: iaom <18504285112@163.com> Date: Wed, 11 Aug 2021 09:34:32 +0800 Subject: [PATCH] Update app search. --- libsearch/appsearch/app-match.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libsearch/appsearch/app-match.cpp b/libsearch/appsearch/app-match.cpp index 8ad8d31..3196c65 100644 --- a/libsearch/appsearch/app-match.cpp +++ b/libsearch/appsearch/app-match.cpp @@ -344,8 +344,7 @@ void AppMatch::parseSoftWareCenterReturn(QList> list, QMa if(locale.language() == QLocale::Chinese) { appname = list.at(i).value("displayname_cn"); pkgname = list.at(i).value("appname"); - } - if(locale.language() == QLocale::English) { + }else { appname = list.at(i).value("appname"); } appdiscription = list.at(i).value("discription");