mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
minor change to the update system
This commit is contained in:
parent
e204dfdb17
commit
713d0c9599
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue