Update image effect text in after capture tasks because it is not about watermark anymore

This commit is contained in:
Jaex 2020-06-17 02:38:38 +03:00
parent 3293de0703
commit 2a2f42639f
3 changed files with 5 additions and 5 deletions

View file

@ -146,7 +146,7 @@ internal class Resources {
}
/// <summary>
/// Looks up a localized string similar to Add image effects / watermark.
/// Looks up a localized string similar to Add image effects.
/// </summary>
internal static string AfterCaptureTasks_AddImageEffects {
get {

View file

@ -477,7 +477,7 @@ Would you like to download it?</value>
<value>Manual</value>
</data>
<data name="AfterCaptureTasks_AddImageEffects" xml:space="preserve">
<value>Add image effects / watermark</value>
<value>Add image effects</value>
</data>
<data name="AfterCaptureTasks_DeleteFile" xml:space="preserve">
<value>Delete file locally</value>

View file

@ -35,7 +35,7 @@ namespace ShareX.ImageEffectsLib
public partial class WatermarkForm : Form
{
private WatermarkConfig config;
private bool IsGuiReady;
private bool isReady;
public WatermarkForm(WatermarkConfig watermarkConfig)
{
@ -85,7 +85,7 @@ private void WatermarkUI_Load(object sender, EventArgs e)
txtWatermarkImageLocation.Text = config.Image.ImageLocation;
IsGuiReady = true;
isReady = true;
UpdatePreview();
}
@ -96,7 +96,7 @@ private void WatermarkUI_Resize(object sender, EventArgs e)
private void UpdatePreview()
{
if (IsGuiReady)
if (isReady)
{
using (Bitmap bmp = new Bitmap(pbPreview.ClientSize.Width, pbPreview.ClientSize.Height))
{