on xenial help sign in
Disable new ual signals for now, since we dont have them yet
86a08efMarius Gripsgard
plugins/Unity/Launcher/ualwrapper.cpp+3−1
@@ -24,6 +24,7 @@ using namespace ubuntu::app_launch;
24UalWrapper::UalWrapper(QObject *parent):
24UalWrapper::UalWrapper(QObject *parent):
25 QObject(parent)
25 QObject(parent)
26{
26{
27+/* Disable for now
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()));
29 });
30 });
@@ -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()));
35 });
36 });
37+*/
36}
38}
37
39
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);
75 }
77 }
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();