patch_manager: fix success message

This commit is contained in:
Megamouse 2020-09-09 20:02:23 +02:00
commit 1d04f14a53

View file

@ -962,6 +962,9 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
} }
refresh(); refresh();
patch_log.success("Successfully downloaded latest patch file");
QMessageBox::information(this, tr("Download successful"), tr("Your patch file is now up to date"));
} }
else else
{ {
@ -969,7 +972,5 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
QMessageBox::critical(this, tr("Validation failed"), tr("Errors were found in the downloaded patch file.\n\nLog:\n%0").arg(QString::fromStdString(log_message.str()))); QMessageBox::critical(this, tr("Validation failed"), tr("Errors were found in the downloaded patch file.\n\nLog:\n%0").arg(QString::fromStdString(log_message.str())));
} }
patch_log.success("Successfully downloaded latest patch file");
QMessageBox::information(this, tr("Download successful"), tr("Your patch file is now up to date"));
return true; return true;
} }