mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Added the Win10 plugin to the Greenshot installer.
This commit is contained in:
parent
cab0f21e26
commit
f2649a1feb
7 changed files with 59 additions and 10 deletions
|
@ -406,7 +406,7 @@ namespace GreenshotPlugin.Core {
|
|||
/// <param name="pattern">String with pattern %var%</param>
|
||||
/// <param name="filenameSafeMode">true to make sure everything is filenamesafe</param>
|
||||
/// <returns>Filled string</returns>
|
||||
public static string FillCmdVariables(string pattern, bool filenameSafeMode)
|
||||
public static string FillCmdVariables(string pattern, bool filenameSafeMode = true)
|
||||
{
|
||||
IDictionary processVars = null;
|
||||
IDictionary userVars = null;
|
||||
|
|
|
@ -38,6 +38,16 @@ namespace GreenshotPlugin.Core
|
|||
return operatingSystem.Version.Major == 10;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 10 or later
|
||||
/// </summary>
|
||||
/// <param name="operatingSystem">OperatingSystem from Environment.OSVersion</param>
|
||||
/// <returns>true if we are running on Windows 10 or later</returns>
|
||||
public static bool IsWindows10OrLater(this OperatingSystem operatingSystem)
|
||||
{
|
||||
return operatingSystem.Version.Major >= 10;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 8(.1)
|
||||
/// </summary>
|
||||
|
|
|
@ -99,9 +99,10 @@ namespace GreenshotPlugin.Core {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get icon for executable, from the cache
|
||||
/// Get icon from resource files, from the cache.
|
||||
/// Examples can be found here: https://diymediahome.org/windows-icons-reference-list-with-details-locations-images/
|
||||
/// </summary>
|
||||
/// <param name="path">path to the exe or dll</param>
|
||||
/// <param name="index">index of the icon</param>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue