Cancelling Before Upload form will not show an Error icon in the main form anymore

This commit is contained in:
McoreD 2014-05-15 12:48:10 +08:00
parent 0ce922cab9
commit 24073a4e53
2 changed files with 8 additions and 2 deletions

View file

@ -74,8 +74,10 @@ public AfterUploadForm(TaskInfo info)
foreach (LinkFormatEnum type in Enum.GetValues(typeof(LinkFormatEnum)))
{
if (!Helpers.IsImageFile(Info.Result.URL) && (type == LinkFormatEnum.HTMLImage || type == LinkFormatEnum.HTMLLinkedImage ||
type == LinkFormatEnum.ForumImage || type == LinkFormatEnum.ForumLinkedImage))
if (!Helpers.IsImageFile(Info.Result.URL) &&
(type == LinkFormatEnum.HTMLImage || type == LinkFormatEnum.HTMLLinkedImage ||
type == LinkFormatEnum.ForumImage || type == LinkFormatEnum.ForumLinkedImage ||
type == LinkFormatEnum.WikiImage || type == LinkFormatEnum.WikiLinkedImage))
continue;
AddFormat(type.GetDescription(), GetUrlByType(type));

View file

@ -279,6 +279,10 @@ private void ThreadDoWork()
}
}
}
else if (beforeUploadResult == DialogResult.Cancel)
{
Info.Result.IsURLExpected = false;
}
}
}
else