Use ClipboardHelpers everywhere

This commit is contained in:
Jaex 2019-12-12 16:12:46 +03:00
parent 65fb293512
commit 64fa09a65c
2 changed files with 2 additions and 2 deletions

View file

@ -182,7 +182,7 @@ private void btnCopyChatEmoji_Click(object sender, EventArgs e)
string text = sb.ToString();
Clipboard.SetText(text);
ClipboardHelpers.CopyText(text);
}
}
}

View file

@ -311,7 +311,7 @@ private void ThreadDoWork()
if (EarlyURLCopied && (StopRequested || Info.Result == null || string.IsNullOrEmpty(Info.Result.URL)) && Clipboard.ContainsText())
{
Clipboard.Clear();
ClipboardHelpers.Clear();
}
if (Info.Job == TaskJob.Job && Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.DeleteFile) && !string.IsNullOrEmpty(Info.FilePath) && File.Exists(Info.FilePath))