mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
Added a way to test for Windows 11.
This commit is contained in:
parent
d57fe900e5
commit
fda0cd9555
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ namespace Greenshot.Base.Core
|
|||
/// <returns>true if we are running on Windows 10</returns>
|
||||
public static bool IsWindows10 { get; } = WinVersion.Major == 10;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 11 or later
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 11 or later</returns>
|
||||
public static bool IsWindows11OrLater { get; } = WinVersion.Major == 10 && WinVersion.Build >= 22000;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 10 or later
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue