Commit f9c4a521 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.
parent 37dea710
......@@ -222,6 +222,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
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