Stub out background update check if EMU_BUILD_NUM is 0

This commit is contained in:
GetDizzy
2025-06-30 20:27:48 -04:00
committed by GitHub
parent 69c5e1b349
commit f92c907299

View File

@@ -456,6 +456,7 @@ VMManagerMain::onPreferencesUpdated()
void void
VMManagerMain::backgroundUpdateCheckStart() const VMManagerMain::backgroundUpdateCheckStart() const
{ {
#if EMU_BUILD_NUM != 0
auto updateChannel = UpdateCheck::UpdateChannel::CI; auto updateChannel = UpdateCheck::UpdateChannel::CI;
#ifdef RELEASE_BUILD #ifdef RELEASE_BUILD
updateChannel = UpdateCheck::UpdateChannel::Stable; updateChannel = UpdateCheck::UpdateChannel::Stable;
@@ -464,6 +465,7 @@ VMManagerMain::backgroundUpdateCheckStart() const
connect(updateCheck, &UpdateCheck::updateCheckComplete, this, &VMManagerMain::backgroundUpdateCheckComplete); connect(updateCheck, &UpdateCheck::updateCheckComplete, this, &VMManagerMain::backgroundUpdateCheckComplete);
connect(updateCheck, &UpdateCheck::updateCheckError, this, &VMManagerMain::backgroundUpdateCheckError); connect(updateCheck, &UpdateCheck::updateCheckError, this, &VMManagerMain::backgroundUpdateCheckError);
updateCheck->checkForUpdates(); updateCheck->checkForUpdates();
#endif
} }
void void