From 9644fef8bdb3b96dfd8b20d1d2c4aa1827521783 Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Mon, 22 Nov 2021 16:35:38 -0700 Subject: Update Windows detection Windows 11 reports itself as Windows 10 using the methods normally employed. Microsoft seems to want people to use the BuildId to identify the version of Windows but I'm going to refuse to do that because it's stupid. This change also prefers DisplayVersion over ReleaseId as somehow I have both and DisplayVersion is more correct (21H2 vs 2009). /shrug. Fixes #1607 --- src/envwindows.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/envwindows.h') diff --git a/src/envwindows.h b/src/envwindows.h index 90655e49..61ef609d 100644 --- a/src/envwindows.h +++ b/src/envwindows.h @@ -40,11 +40,7 @@ public: // the BuildLab entry from the registry, may be empty QString buildLab; - // product name such as "Windows 10 Pro", may not be in English, may be - // empty - QString productName; - - // release ID such as 1809, may be mepty + // release ID such as 1809, may be empty QString ID; // some sub-build number, undocumented, may be empty -- cgit v1.3.1