mirror of
https://github.com/RyzenDew/Lime-3DS-Emulator.git
synced 2024-06-02 15:38:50 +02:00
lambda function fix
This commit is contained in:
parent
8c16074ba0
commit
a1a87fe5af
|
@ -1074,13 +1074,9 @@ void GMainWindow::ShowUpdaterWidgets() {
|
|||
|
||||
void GMainWindow::ShowUpdatePopup() {
|
||||
QNetworkAccessManager *manager = new QNetworkAccessManager();
|
||||
QObject::connect(manager, &QNetworkAccessManager::finished, this, [=](QNetworkReply *reply) {
|
||||
QObject::connect(manager, &QNetworkAccessManager::finished, this, [=, this](QNetworkReply *reply) {
|
||||
if (reply->error()) {
|
||||
QMessageBox::critical(
|
||||
this, tr("Cannot Fetch Github"),
|
||||
tr( " "
|
||||
"Could not fetch Github"));
|
||||
return;
|
||||
return;
|
||||
} else {
|
||||
QJsonObject jsonObject = QJsonDocument::fromJson(reply->readAll()).object();
|
||||
QString jsonTag = jsonObject[QStringLiteral("tag_name")].toString();
|
||||
|
|
Loading…
Reference in New Issue
Block a user