Fix the problem that online applications can not jump to the description page in software center.

This commit is contained in:
JunjieBai 2023-05-05 17:24:05 +08:00
parent df3332046f
commit c91a74c66d
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,8 @@ AppSearchPlugin::AppSearchPlugin(QObject *parent) : QThread(parent), m_appSearch
SearchProperty::SearchResultProperty::ApplicationLocalName,
SearchProperty::SearchResultProperty::ApplicationIconName,
SearchProperty::SearchResultProperty::ApplicationDescription,
SearchProperty::SearchResultProperty::IsOnlineApplication});
SearchProperty::SearchResultProperty::IsOnlineApplication,
SearchProperty::SearchResultProperty::ApplicationPkgName});
}
AppSearchPlugin::~AppSearchPlugin()
@ -200,6 +201,9 @@ void AppSearchPlugin::run()
description.value = data.value(SearchProperty::SearchResultProperty::ApplicationDescription).toString();
ri.description.append(description);
ri.type = data.value(SearchProperty::SearchResultProperty::IsOnlineApplication).toInt();
if (ri.type == 1) {
ri.actionKey = data.value(SearchProperty::SearchResultProperty::ApplicationPkgName).toString();
}
m_searchResult->enqueue(ri);
}