Commit 538489ec authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Flatpak: Make sure we release every time we aquire

Otherwise it sometimes won't ever finish to update

BUG: 394558
parent 9577e7d1
......@@ -545,14 +545,6 @@ private:
FlatpakRemote* m_remote;
};
void FlatpakBackend::finishInitialization()
{
loadInstalledApps();
checkForUpdates();
acquireFetching(false);
}
void FlatpakBackend::loadAppsFromAppstreamData()
{
for (auto installation : qAsConst(m_installations)) {
......@@ -631,8 +623,11 @@ void FlatpakBackend::integrateRemote(FlatpakInstallation *flatpakInstallation, F
addResource(resource);
}
if (!m_refreshAppstreamMetadataJobs) {
finishInitialization();
loadInstalledApps();
checkForUpdates();
}
acquireFetching(false);
fw->deleteLater();
});
}
......
......@@ -86,7 +86,6 @@ private:
FlatpakResource * addAppFromFlatpakRef(const QUrl &url);
void addResource(FlatpakResource *resource);
bool compareAppFlatpakRef(FlatpakInstallation *flatpakInstallation, FlatpakResource *resource, FlatpakInstalledRef *ref) const;
void finishInitialization();
void loadAppsFromAppstreamData();
bool loadAppsFromAppstreamData(FlatpakInstallation *flatpakInstallation);
void loadInstalledApps();
......
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