Commit b83f0f40 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

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


(cherry picked from commit 42b084fb)
parent 8162f0f3
...@@ -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