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

flatpak: Help flatpak backend start faster

At the moment we were doing a slow-ish call right at the beginning to
check which resources are updateable. We will be checking that soon
enough in the startup process, so we better not block in there so we can
produce a working UI sooner.
parent 9dc41865
Pipeline #209432 passed with stage
in 2 minutes and 2 seconds
......@@ -1075,7 +1075,7 @@ QSharedPointer<FlatpakSource> FlatpakBackend::integrateRemote(FlatpakInstallatio
void FlatpakBackend::loadLocalUpdates(FlatpakInstallation *flatpakInstallation)
g_autoptr(GError) localError = nullptr;
g_autoptr(GPtrArray) refs = flatpak_installation_list_installed_refs_for_update(flatpakInstallation, m_cancellable, &localError);
g_autoptr(GPtrArray) refs = flatpak_installation_list_installed_refs(flatpakInstallation, m_cancellable, &localError);
if (!refs) {
qWarning() << "Failed to get list of installed refs for listing local updates:" << localError->message;
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