mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 00:16:45 +00:00
Hide update check progress bar even if network error occurred
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user