diff options
author | sr55 <[email protected]> | 2021-03-14 14:10:18 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2021-03-14 14:22:20 +0000 |
commit | 15fb0783fe8f72930755c5f7b7d4875b46620ad8 (patch) | |
tree | 84e46c5f98292a6d3c8399c604d96e27b91b730d /win/CS/HandBrakeWPF/Utilities/SystemInfo.cs | |
parent | 48617ff4455bdc9226957148ffb61d3ad3e29213 (diff) |
WinGui: Add a Soft warning about Windows 7 and 8 support being ceased. The application will still run but certain features are unavailable or broken.
Diffstat (limited to 'win/CS/HandBrakeWPF/Utilities/SystemInfo.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Utilities/SystemInfo.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs b/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs index ece1bdd34..466e807bd 100644 --- a/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs +++ b/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs @@ -133,16 +133,8 @@ namespace HandBrakeWPF.Utilities public static bool IsWindows10() { - var reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); - - string productName = (string)reg.GetValue("ProductName"); - - if (productName.StartsWith("Windows 10")) - { - return true; - } - - if (productName.StartsWith("Windows Server 2019")) + OperatingSystem os = Environment.OSVersion; + if (os.Version.Major >= 10) { return true; } |