@@ -24,6 +24,7 @@ using namespace ubuntu::app_launch;
24UalWrapper::UalWrapper(QObject *parent):
24UalWrapper::UalWrapper(QObject *parent):
25 QObject(parent)
25 QObject(parent)
27 Registry::appAdded().connect([this](const std::shared_ptr<Application>&app) {
28 Registry::appAdded().connect([this](const std::shared_ptr<Application>&app) {
28 Q_EMIT appAdded(QString::fromStdString(app->appId()));
29 Q_EMIT appAdded(QString::fromStdString(app->appId()));
@@ -33,6 +34,7 @@ UalWrapper::UalWrapper(QObject *parent):
33 Registry::appInfoUpdated().connect([this](const std::shared_ptr<Application>&app){
34 Registry::appInfoUpdated().connect([this](const std::shared_ptr<Application>&app){
34 Q_EMIT appInfoChanged(QString::fromStdString(app->appId()));
35 Q_EMIT appInfoChanged(QString::fromStdString(app->appId()));
38QStringList UalWrapper::installedApps()
40QStringList UalWrapper::installedApps()
@@ -73,7 +75,7 @@ UalWrapper::AppInfo UalWrapper::getApplicationInfo(const QString &appId)
73 for (const std::string &keyword : ualApp->info()->keywords().value()) {
75 for (const std::string &keyword : ualApp->info()->keywords().value()) {
74 info.keywords << QString::fromStdString(keyword);
76 info.keywords << QString::fromStdString(keyword);
76− info.popularity = ualApp->info()->popularity();
78+ //info.popularity = ualApp->info()->popularity();
77 info.valid = true;
79 info.valid = true;
78 } catch (const std::runtime_error &e) {
80 } catch (const std::runtime_error &e) {
79 qWarning() << "ubuntu-app-launch threw an exception getting app info for appId:" << appId << ":" << e.what();
81 qWarning() << "ubuntu-app-launch threw an exception getting app info for appId:" << appId << ":" << e.what();