mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
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:
parent
2a5ae1557e
commit
5db1f5564b
5 changed files with 15 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue