mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
fix 剪贴板导致崩溃问题
This commit is contained in:
parent
b457aa836c
commit
2809e96209
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user