Stub out background update check if EMU_BUILD_NUM is 0
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user