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