Commit 42b084fb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

flatpak: Make sure we refresh the size display on the views

parent 4013a282
...@@ -546,6 +546,11 @@ void FlatpakBackend::addResource(FlatpakResource *resource) ...@@ -546,6 +546,11 @@ void FlatpakBackend::addResource(FlatpakResource *resource)
m_extends.append(resource->extends()); m_extends.append(resource->extends());
m_extends.removeDuplicates(); m_extends.removeDuplicates();
} }
connect(resource, &FlatpakResource::sizeChanged, this, [this, resource] {
if (!isFetching())
Q_EMIT resourcesChanged(resource, {"size", "sizeDescription"});
});
} }
class FlatpakSource class FlatpakSource
......
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