Qt: Don't display update errors for background checks

It can be annoying, e.g. if you're not connected to the internet.
This commit is contained in:
Connor McLaughlin 2022-05-23 20:10:52 +10:00 committed by refractionpcsx2
parent 489fbe628a
commit c3ee97103f
1 changed files with 3 additions and 1 deletions

View File

@ -145,7 +145,9 @@ void AutoUpdaterDialog::reportError(const char* msg, ...)
std::string full_msg = StringUtil::StdStringFromFormatV(msg, ap);
va_end(ap);
QMessageBox::critical(this, tr("Updater Error"), QString::fromStdString(full_msg));
// don't display errors when we're doing an automatic background check, it's just annoying
if (m_display_messages)
QMessageBox::critical(this, tr("Updater Error"), QString::fromStdString(full_msg));
}
void AutoUpdaterDialog::queueUpdateCheck(bool display_message)