Fixed the issue that someone could have a windows 10 version which is older than what we can support. (#207)

Also upgrade Inno Setup and SVG
This commit is contained in:
Robin Krom 2020-05-10 23:04:31 +02:00 committed by GitHub
parent 2a5ae1557e
commit 5db1f5564b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 6 deletions

View file

@ -35,7 +35,9 @@ namespace GreenshotWin10Plugin
[Plugin("Win10", false)]
public sealed class Win10Plugin : IGreenshotPlugin
{
public void Dispose()
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(Win10Plugin));
public void Dispose()
{
Dispose(true);
}
@ -58,8 +60,10 @@ namespace GreenshotWin10Plugin
/// <returns>true if plugin is initialized, false if not (doesn't show)</returns>
public bool Initialize()
{
if (!WindowsVersion.IsWindows10OrLater)
// Here we check if the build version of Windows is actually what we support
if (!WindowsVersion.IsWindows10BuildOrLater(17763))
{
Log.WarnFormat("No support for Windows build {0}", WindowsVersion.BuildVersion);
return false;
}