Commit 8a78ef26 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't recreate the state-related properties when the state changes

parent 3cd95b4a
......@@ -143,7 +143,8 @@ void AbstractResource::reportNewState()
if (backend()->isFetching())
emit backend()->resourcesChanged(this, {"state", "status", "canUpgrade", "size", "sizeDescription", "installedVersion", "availableVersion" });
static const QVector<QByteArray> ns = {"state", "status", "canUpgrade", "size", "sizeDescription", "installedVersion", "availableVersion" };
emit backend()->resourcesChanged(this, ns);
static bool shouldFilter(AbstractResource* res, const QPair<FilterType, QString>& filter)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment