[Auto-update] Turn off on Windows < 1903 (#10240)

This commit is contained in:
Andrey Nekrasov
2021-03-17 16:49:07 +03:00
committed by GitHub
parent 7c8ed9e2bb
commit 535cd1f9ac
8 changed files with 47 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
#include "installer.h"
#include <common/version/version.h>
#include <common/notifications/notifications.h>
#include <common/utils/os-detect.h>
#include "utils/winapi_error.h"
namespace // Strings in this namespace should not be localized
@@ -192,4 +193,8 @@ namespace updating
co_return false;
}
bool is_old_windows_version()
{
return !Is19H1OrHigher();
}
}