Updater: Do not reset current task in finished signal (#5370)

This commit is contained in:
DioEgizio 2026-04-12 08:22:19 +00:00 committed by GitHub
commit b230645d53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1160,8 +1160,6 @@ void PrismUpdaterApp::downloadReleasePage(const QString& api_url, int page)
m_current_task.reset(download); m_current_task.reset(download);
connect(download.get(), &Net::Download::finished, this, [this]() { connect(download.get(), &Net::Download::finished, this, [this]() {
qDebug() << "Download" << m_current_task->getUid().toString() << "finished"; qDebug() << "Download" << m_current_task->getUid().toString() << "finished";
m_current_task.reset();
m_current_url = "";
}); });
QCoreApplication::processEvents(); QCoreApplication::processEvents();