Commit ce290cd3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: Make sure we don't keep stale resources

parent c97b7f57
......@@ -60,6 +60,9 @@ public:
: AbstractResource(backend)
, m_backend(backend)
{
connect(m_backend, &AbstractResourcesBackend::resourceRemoved, this, [this] (AbstractResource *res) {
m_resources.remove(res);
});
}
QString packageName() const override { return QStringLiteral("discover-offline-upgrade");}
......
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