autoupdating: ignore local builds

This commit is contained in:
yuyoyuppe
2020-10-20 12:35:51 +03:00
committed by Andrey Nekrasov
parent 701ccfdbcc
commit 83872046fa

View File

@@ -102,6 +102,11 @@ namespace updating
std::future<std::optional<new_version_download_info>> get_new_github_version_info_async() std::future<std::optional<new_version_download_info>> get_new_github_version_info_async()
{ {
// If the current version starts with 0.0.*, it means we're on a local build from a farm and shouldn't check for updates.
if (VERSION_MAJOR == 0 && VERSION_MINOR == 0)
{
co_return std::nullopt;
}
try try
{ {
http::HttpClient client; http::HttpClient client;