added basic last run crash dialog

This commit is contained in:
fourtf
2018-04-20 00:15:57 +02:00
parent 683c4aed2d
commit e17a7cc222
10 changed files with 73 additions and 10 deletions
+2 -7
View File
@@ -33,13 +33,8 @@ void UpdateManager::checkForUpdates()
util::NetworkRequest req(url);
req.setTimeout(20000);
req.getJSON([this](QJsonDocument &document) {
if (document.isEmpty()) {
qDebug() << "error updating";
return;
}
QJsonValue version_val = document.object().value("version");
req.getJSON([this](QJsonObject &object) {
QJsonValue version_val = object.value("version");
if (!version_val.isString()) {
qDebug() << "error updating";
return;