mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -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>
|
/// <returns>true if we are running on Windows 10</returns>
|
||||||
public static bool IsWindows10 { get; } = WinVersion.Major == 10;
|
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>
|
/// <summary>
|
||||||
/// Test if the current OS is Windows 10 or later
|
/// Test if the current OS is Windows 10 or later
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue