mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
autoupdating: ignore local builds
This commit is contained in:
committed by
Andrey Nekrasov
parent
701ccfdbcc
commit
83872046fa
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user