Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Attempt at making less refreshes

Summary: It messes with offline updates

Reviewers: sitter

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14059
parent c78bbf97
......@@ -75,6 +75,7 @@ class DISCOVERCOMMON_EXPORT PackageKitBackend : public AbstractResourcesBackend
static QString locateService(const QString &filename);
QList<AppStream::Component> componentsById(const QString &id) const;
void fetchUpdates();
public Q_SLOTS:
void reloadPackageList();
......@@ -93,7 +94,6 @@ class DISCOVERCOMMON_EXPORT PackageKitBackend : public AbstractResourcesBackend
private:
template <typename T>
T resourcesByPackageNames(const QStringList& names) const;
void fetchUpdates();
void checkDaemonRunning();
void acquireFetching(bool f);
......
......@@ -192,7 +192,7 @@ void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time
}
setProgressing(false);
m_backend->checkForUpdates();
m_backend->fetchUpdates();
fetchLastUpdateTime();
if (qEnvironmentVariableIsSet("PK_OFFLINE_UPDATE")) {
......
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