Compare commits

...

6 Commits

Author SHA1 Message Date
Danny aa3232c8e6
Merge 08abafe83a into 39bba4dda9 2024-04-23 19:00:40 -04:00
Jaex 39bba4dda9 Update version 2024-04-23 06:07:05 +03:00
Jaex 4ad4b5c9a7 Update FluentFTP 2024-04-23 05:59:36 +03:00
Jaex 40530d90a8 Update FFmpeg to 7.0 2024-04-23 05:40:37 +03:00
Danny 08abafe83a
Fix typo with task setting name 2024-04-09 20:59:14 -04:00
Danny d860104a08
Fix toast notification settings not being respected in OCR 2024-04-09 20:20:23 -04:00
4 changed files with 12 additions and 11 deletions

View File

@ -3,7 +3,7 @@
<Company>ShareX Team</Company> <Company>ShareX Team</Company>
<Product>ShareX</Product> <Product>ShareX</Product>
<Copyright>Copyright (c) 2007-2024 ShareX Team</Copyright> <Copyright>Copyright (c) 2007-2024 ShareX Team</Copyright>
<Version>16.0.3</Version> <Version>16.0.4</Version>
<EmbeddedResourceUseDependentUponConvention>true</EmbeddedResourceUseDependentUponConvention> <EmbeddedResourceUseDependentUponConvention>true</EmbeddedResourceUseDependentUponConvention>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>

View File

@ -93,7 +93,7 @@ namespace ShareX.Setup
private static string MakeAppxPath => Path.Combine(WindowsKitsDir, "x64", "makeappx.exe"); private static string MakeAppxPath => Path.Combine(WindowsKitsDir, "x64", "makeappx.exe");
private const string InnoSetupCompilerPath = @"C:\Program Files (x86)\Inno Setup 6\ISCC.exe"; private const string InnoSetupCompilerPath = @"C:\Program Files (x86)\Inno Setup 6\ISCC.exe";
private const string FFmpegDownloadURL = "https://github.com/ShareX/FFmpeg/releases/download/v6.1/ffmpeg-6.1-win64.zip"; private const string FFmpegDownloadURL = "https://github.com/ShareX/FFmpeg/releases/download/v7.0/ffmpeg-7.0-win64.zip";
private static void Main(string[] args) private static void Main(string[] args)
{ {

View File

@ -16,7 +16,7 @@
<EmbeddedResource Include="APIKeys\jira_sharex.pfx" /> <EmbeddedResource Include="APIKeys\jira_sharex.pfx" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="FluentFTP" Version="49.0.2" /> <PackageReference Include="FluentFTP" Version="50.0.1" />
<PackageReference Include="MegaApiClient" Version="1.10.4" /> <PackageReference Include="MegaApiClient" Version="1.10.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SSH.NET" Version="2024.0.0" /> <PackageReference Include="SSH.NET" Version="2024.0.0" />

View File

@ -1312,10 +1312,11 @@ namespace ShareX
{ {
if (taskSettings == null) taskSettings = TaskSettings.GetDefaultTaskSettings(); if (taskSettings == null) taskSettings = TaskSettings.GetDefaultTaskSettings();
await OCRImage(bmp, taskSettings.CaptureSettingsReference.OCROptions, filePath); bool notificationsEnabled = taskSettings.GeneralSettings.ShowToastNotificationAfterTaskCompleted;
await OCRImage(bmp, taskSettings.CaptureSettingsReference.OCROptions, filePath, notificationsEnabled);
} }
private static async Task OCRImage(Bitmap bmp, OCROptions options, string filePath = null) private static async Task OCRImage(Bitmap bmp, OCROptions options, string filePath = null, bool notificationsEnabled = true)
{ {
try try
{ {
@ -1325,7 +1326,7 @@ namespace ShareX
{ {
if (options.Silent) if (options.Silent)
{ {
await AsyncOCRImage(bmp, options, filePath); await AsyncOCRImage(bmp, options, filePath, notificationsEnabled);
} }
else else
{ {
@ -1348,9 +1349,9 @@ namespace ShareX
} }
} }
private static async Task AsyncOCRImage(Bitmap bmp, OCROptions options, string filePath = null) private static async Task AsyncOCRImage(Bitmap bmp, OCROptions options, string filePath = null, bool notificationsEnabled = true)
{ {
ShowNotificationTip(Resources.OCRForm_AutoProcessing); if (notificationsEnabled) ShowNotificationTip(Resources.OCRForm_AutoProcessing);
string result = null; string result = null;
@ -1372,11 +1373,11 @@ namespace ShareX
File.WriteAllText(textFilePath, result, Encoding.UTF8); File.WriteAllText(textFilePath, result, Encoding.UTF8);
} }
ShowNotificationTip(Resources.OCRForm_AutoComplete); if (notificationsEnabled) ShowNotificationTip(Resources.OCRForm_AutoComplete);
} }
else else
{ {
ShowNotificationTip(Resources.OCRForm_AutoCompleteFail); if (notificationsEnabled) ShowNotificationTip(Resources.OCRForm_AutoCompleteFail);
} }
} }
@ -2182,4 +2183,4 @@ namespace ShareX
return true; return true;
} }
} }
} }