mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
FEATURE-945: Added environment variables to the external command (also removed unused imports and made some variables readonly)
This commit is contained in:
parent
4f326c9c0e
commit
d25021631e
90 changed files with 390 additions and 373 deletions
|
@ -33,7 +33,7 @@ namespace GreenshotOCR {
|
|||
private static OCRConfiguration config = IniConfig.GetIniSection<OCRConfiguration>();
|
||||
private const int MIN_WIDTH = 130;
|
||||
private const int MIN_HEIGHT = 130;
|
||||
private OcrPlugin plugin;
|
||||
private readonly OcrPlugin plugin;
|
||||
|
||||
public override string Designation {
|
||||
get {
|
||||
|
@ -62,7 +62,7 @@ namespace GreenshotOCR {
|
|||
}
|
||||
|
||||
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
|
||||
ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description);
|
||||
ExportInformation exportInformation = new ExportInformation(Designation, Description);
|
||||
exportInformation.ExportMade = plugin.DoOCR(surface) != null;
|
||||
return exportInformation;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue