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

Forward the download speed from PackageKit into transactions

parent 61ef7454
......@@ -96,6 +96,9 @@ void PKTransaction::trigger(PackageKit::Transaction::TransactionFlags flags)
connect(m_trans.data(), &PackageKit::Transaction::itemProgress, this, &PKTransaction::progressChanged);
connect(m_trans.data(), &PackageKit::Transaction::eulaRequired, this, &PKTransaction::eulaRequired);
connect(m_trans.data(), &PackageKit::Transaction::allowCancelChanged, this, &PKTransaction::cancellableChanged);
connect(m_trans.data(), &PackageKit::Transaction::speedChanged, this, [this]() {
setDownloadSpeed(m_trans->speed());
});
setCancellable(m_trans->allowCancel());
}
......
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