If image editor file dialog is canceled then don't show file not found msg box

This commit is contained in:
Jaex 2016-11-12 20:34:26 +03:00
parent 14cde29c05
commit 90a312d516

View file

@ -781,7 +781,10 @@ public static void AnnotateImage(TaskSettings taskSettings = null)
string filePath = ImageHelpers.OpenImageFileDialog();
AnnotateImage(filePath, taskSettings);
if (!string.IsNullOrEmpty(filePath))
{
AnnotateImage(filePath, taskSettings);
}
}
public static void AnnotateImage(string filePath, TaskSettings taskSettings = null)