Commit 44f03fc0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Include the progress of transactions

BUG: 384038
parent dd3ed051
......@@ -101,11 +101,12 @@ void PKTransaction::trigger(PackageKit::Transaction::TransactionFlags flags)
void PKTransaction::progressChanged(const QString &id, PackageKit::Transaction::Status status, uint percentage)
{
Q_UNUSED(percentage);
PackageKitResource * res = qobject_cast<PackageKitResource*>(resource());
if (!res->allPackageNames().contains(PackageKit::Daemon::packageName(id)))
return;
setProgress(percentage);
if (status == PackageKit::Transaction::StatusDownload)
setStatus(Transaction::DownloadingStatus);
else
......
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