From 62f7e550c51484ee0f1c2f4b90f439c8d5175f01 Mon Sep 17 00:00:00 2001 From: Shiokai <103746805+Shiokai@users.noreply.github.com> Date: Fri, 28 Oct 2022 18:30:35 +0900 Subject: [PATCH] =?UTF-8?q?Copy=E7=B3=BB=E3=81=AE=E3=83=9C=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=82=92=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E3=81=97?= =?UTF-8?q?=E3=81=9F=E9=9A=9B=E3=81=AB=E3=82=B3=E3=83=94=E3=83=BC=E3=81=8C?= =?UTF-8?q?=E5=A4=B1=E6=95=97=E3=81=99=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E5=AF=BE=E5=87=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VRChatActivityLogViewer/DetailWindow.xaml.cs | 8 ++++---- .../VRChatActivityLogViewer/MainWindow.xaml.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs b/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs index 1d3a639..0713a4c 100644 --- a/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs +++ b/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs @@ -270,7 +270,7 @@ private void CopyWorldIdButton_Click(object sender, RoutedEventArgs e) return; } - Clipboard.SetText(ActivityLog.WorldID ?? ""); + Clipboard.SetDataObject(ActivityLog.WorldID ?? ""); } /// @@ -285,7 +285,7 @@ private void CopyWorldNameButton_Click(object sender, RoutedEventArgs e) return; } - Clipboard.SetText(ActivityLog.WorldName ?? ""); + Clipboard.SetDataObject(ActivityLog.WorldName ?? ""); } /// @@ -300,7 +300,7 @@ private void CopyUserIdButton_Click(object sender, RoutedEventArgs e) return; } - Clipboard.SetText(ActivityLog.UserID ?? ""); + Clipboard.SetDataObject(ActivityLog.UserID ?? ""); } /// @@ -315,7 +315,7 @@ private void CopyUrlButton_Click(object sender, RoutedEventArgs e) return; } - Clipboard.SetText(ActivityLog.Url ?? ""); + Clipboard.SetDataObject(ActivityLog.Url ?? ""); } /// diff --git a/VRChatActivityLogViewer/VRChatActivityLogViewer/MainWindow.xaml.cs b/VRChatActivityLogViewer/VRChatActivityLogViewer/MainWindow.xaml.cs index b8465bc..f14ba97 100644 --- a/VRChatActivityLogViewer/VRChatActivityLogViewer/MainWindow.xaml.cs +++ b/VRChatActivityLogViewer/VRChatActivityLogViewer/MainWindow.xaml.cs @@ -171,7 +171,7 @@ private void CopyWorldIDButton_Click(object sender, RoutedEventArgs e) { if (button.Tag is ActivityLogGridModel tag) { - Clipboard.SetText(tag.WorldID ?? ""); + Clipboard.SetDataObject(tag.WorldID ?? ""); } } } @@ -187,7 +187,7 @@ private void CopyUserIDButton_Click(object sender, RoutedEventArgs e) { if (button.Tag is ActivityLogGridModel tag) { - Clipboard.SetText(tag.UserID ?? ""); + Clipboard.SetDataObject(tag.UserID ?? ""); } } }