mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 06:53:26 +08:00
autoupdating: ignore local builds
This commit is contained in:
parent
701ccfdbcc
commit
83872046fa
@ -102,6 +102,11 @@ namespace updating
|
||||
|
||||
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
|
||||
{
|
||||
http::HttpClient client;
|
||||
|
Loading…
Reference in New Issue
Block a user