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

snap: Set the downloading status to the transaction

Otherwise the TransactionListener (hence the button) doesn't consider it
active

BUG: 388916
parent 832a9a8f
......@@ -35,12 +35,12 @@ SnapTransaction::SnapTransaction(SnapResource* app, QSnapdRequest* request, Role
, m_request(request)
, m_newState(newState)
{
setStatus(DownloadingStatus);
setCancellable(false);
connect(request, &QSnapdRequest::progress, this, &SnapTransaction::progressed);
connect(request, &QSnapdRequest::complete, this, &SnapTransaction::finishTransaction);
setStatus(SetupStatus);
setStatus(DownloadingStatus);
request->runAsync();
}
......
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