Send updates with icons separately to not overflow protobuf

This commit is contained in:
Simon Fels 2018-01-13 06:59:25 +01:00
commit 14774c0177
2 changed files with 10 additions and 2 deletions

View file

@ -99,7 +99,8 @@ void PlatformApiStub::update_application_list(const ApplicationListUpdate &updat
*c = category;
}
app->set_icon(a.icon.data(), a.icon.size());
if (a.icon.size() > 0)
app->set_icon(a.icon.data(), a.icon.size());
}
for (const auto &package : update.removed_applications) {