mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Made the Win10 share work, at least somewhat.
This commit is contained in:
parent
4da8f223da
commit
5779d2ac2b
7 changed files with 365 additions and 4 deletions
|
@ -22,6 +22,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Greenshot.Plugin;
|
||||
using GreenshotPlugin.Core;
|
||||
|
||||
namespace GreenshotWin10Plugin
|
||||
{
|
||||
|
@ -48,9 +49,18 @@ namespace GreenshotWin10Plugin
|
|||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// yields the windows 10 destinations if Windows 10 is detected
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable with the destinations</returns>
|
||||
public IEnumerable<IDestination> Destinations()
|
||||
{
|
||||
if (!Environment.OSVersion.IsWindows10())
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
yield return new Win10OcrDestination();
|
||||
yield return new Win10ShareDestination();
|
||||
}
|
||||
|
||||
public IEnumerable<IProcessor> Processors()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue