mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 17:02:05 +13:00
Use ClipboardHelpers everywhere
This commit is contained in:
parent
65fb293512
commit
64fa09a65c
2 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ private void btnCopyChatEmoji_Click(object sender, EventArgs e)
|
|||
|
||||
string text = sb.ToString();
|
||||
|
||||
Clipboard.SetText(text);
|
||||
ClipboardHelpers.CopyText(text);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue