Hide update check progress bar even if network error occurred

This commit is contained in:
baldurk
2020-01-14 18:02:10 +00:00
parent 4fd97e8946
commit a2562200f7
+3 -3
View File
@@ -1355,14 +1355,14 @@ void MainWindow::CheckUpdates(bool forceCheck, UpdateResultMethod callback)
});
QObject::connect(req, &QNetworkReply::finished, [this, req, callback]() {
statusText->setText(QString());
statusProgress->setVisible(false);
if(req->error() != QNetworkReply::NoError)
return;
QString response = QString::fromUtf8(req->readAll());
statusText->setText(QString());
statusProgress->setVisible(false);
if(response.isEmpty())
{
m_Ctx.Config().CheckUpdate_UpdateAvailable = false;