Skip to content

Commit

Permalink
fix: 修复剪贴板被占用(如he3)时写入剪贴板异常退出的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZGGSONG committed Oct 16, 2023
1 parent 513766b commit 548e300
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions STranslate/ViewModel/MainVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,27 @@ public MainVM()
//复制输入
CopyInputCmd = new RelayCommand((_) => true, (_) =>
{
Clipboard.SetText(InputTxt);
Clipboard.SetDataObject(InputTxt);
});
//复制翻译结果
CopyResultCmd = new RelayCommand((_) => true, (_) =>
{
Clipboard.SetText(OutputTxt);
Clipboard.SetDataObject(OutputTxt);
});
//复制蛇形结果
CopySnakeResultCmd = new RelayCommand((_) => true, (_) =>
{
Clipboard.SetText(SnakeRet);
Clipboard.SetDataObject(SnakeRet);
});
//复制小驼峰结果
CopySmallHumpResultCmd = new RelayCommand((_) => true, (_) =>
{
Clipboard.SetText(SmallHumpRet);
Clipboard.SetDataObject(SmallHumpRet);
});
//复制大驼峰结果
CopyLargeHumpResultCmd = new RelayCommand((_) => true, (_) =>
{
Clipboard.SetText(LargeHumpRet);
Clipboard.SetDataObject(LargeHumpRet);
});

//主题切换
Expand Down

0 comments on commit 548e300

Please sign in to comment.