fix 剪贴板导致崩溃问题

This commit is contained in:
Genteure 2019-08-14 21:30:45 +08:00
parent b457aa836c
commit 2809e96209

View File

@ -145,9 +145,15 @@ namespace BililiveRecorder.WPF
private void TextBlock_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
if (sender is TextBlock textBlock)
try
{
if (sender is TextBlock textBlock)
{
Clipboard.SetText(textBlock.Text);
}
}
catch (Exception)
{
Clipboard.SetText(textBlock.Text);
}
}