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

pk: Improve updates progress when doing an offline update

For the offline item, the progress is the transaction's download
progress. This way we have some feedback on the item which as we see on
the phone.

(cherry picked from commit f9c4a521)
parent b4d039eb
......@@ -223,6 +223,13 @@ void PackageKitUpdater::setupTransaction(PackageKit::Transaction::TransactionFla
connect(, &PackageKit::Transaction::speedChanged, this, [this] {
Q_EMIT downloadSpeedChanged(downloadSpeed());
if (m_toUpgrade.contains(m_upgrade)) {
connect(m_transaction, &PackageKit::Transaction::percentageChanged, this, [this] {
if (m_transaction->status() == PackageKit::Transaction::StatusDownload) {
Q_EMIT resourceProgressed(m_upgrade, m_transaction->percentage(), Downloading);
QSet<AbstractResource*> PackageKitUpdater::packagesForPackageId(const QSet<QString>& pkgids) const
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