mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Cancelling Before Upload form will not show an Error icon in the main form anymore
This commit is contained in:
parent
0ce922cab9
commit
24073a4e53
2 changed files with 8 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -279,6 +279,10 @@ private void ThreadDoWork()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (beforeUploadResult == DialogResult.Cancel)
|
||||
{
|
||||
Info.Result.IsURLExpected = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue