mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Working on improving the toast notifications [skip ci]
This commit is contained in:
parent
7e96c99b3d
commit
a29f6faa27
5 changed files with 496 additions and 38 deletions
|
@ -15,6 +15,7 @@ namespace GreenshotPlugin.Core
|
|||
/// </summary>
|
||||
public static Version WinVersion { get; } = Environment.OSVersion.Version;
|
||||
|
||||
public static double WinVersionTotal = WinVersion.Major + (double)WinVersion.Minor / 10;
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 10
|
||||
/// </summary>
|
||||
|
@ -39,6 +40,8 @@ namespace GreenshotPlugin.Core
|
|||
/// <returns>true if we are running on Windows 7 or later</returns>
|
||||
public static bool IsWindows7OrLater { get; } = WinVersion.Major == 6 && WinVersion.Minor >= 1 || WinVersion.Major > 6;
|
||||
|
||||
public static bool IsWindows7OrLower { get; } = WinVersionTotal <= 6.1;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 8.0
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue