Commit 434d3155 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: Emit sizeChanged when size changes

parent f191efb8
......@@ -196,6 +196,7 @@ void PackageKitResource::setDetails(const PackageKit::Details & details)
if (m_details != details) {
const auto oldState = state();
const auto oldSize= size();
m_details = details;
if (oldState != state())
......@@ -203,6 +204,10 @@ void PackageKitResource::setDetails(const PackageKit::Details & details)
if (!backend()->isFetching())
Q_EMIT backend()->resourcesChanged(this, {"size", "homepage", "license"});
if (oldSize != size()) {
Q_EMIT sizeChanged();
}
}
}
......
Markdown is supported
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