minor change to the update system

This commit is contained in:
fourtf 2018-06-21 22:39:17 +02:00
parent e204dfdb17
commit 713d0c9599

View file

@ -53,6 +53,12 @@ void UpdateManager::installUpdates()
req.setTimeout(600000); req.setTimeout(600000);
req.onError([this](int) -> bool { req.onError([this](int) -> bool {
this->setStatus_(DownloadFailed); this->setStatus_(DownloadFailed);
QMessageBox *box = new QMessageBox(QMessageBox::Information, "Chatterino Update",
"Failed while trying to download the update.");
box->setAttribute(Qt::WA_DeleteOnClose);
box->show();
return true; return true;
}); });
req.get([this](QByteArray &object) { req.get([this](QByteArray &object) {