Skip to content

Commit

Permalink
Merge pull request #15 from Shiokai/fix/fix_copy_failure
Browse files Browse the repository at this point in the history
Copy系のボタンをクリックした際にコピーが失敗する場合への対処
  • Loading branch information
nukora authored Oct 29, 2022
2 parents 6d2a1d7 + 62f7e55 commit b10e18c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private void CopyWorldIdButton_Click(object sender, RoutedEventArgs e)
return;
}

Clipboard.SetText(ActivityLog.WorldID ?? "");
Clipboard.SetDataObject(ActivityLog.WorldID ?? "");
}

/// <summary>
Expand All @@ -285,7 +285,7 @@ private void CopyWorldNameButton_Click(object sender, RoutedEventArgs e)
return;
}

Clipboard.SetText(ActivityLog.WorldName ?? "");
Clipboard.SetDataObject(ActivityLog.WorldName ?? "");
}

/// <summary>
Expand All @@ -300,7 +300,7 @@ private void CopyUserIdButton_Click(object sender, RoutedEventArgs e)
return;
}

Clipboard.SetText(ActivityLog.UserID ?? "");
Clipboard.SetDataObject(ActivityLog.UserID ?? "");
}

/// <summary>
Expand All @@ -315,7 +315,7 @@ private void CopyUrlButton_Click(object sender, RoutedEventArgs e)
return;
}

Clipboard.SetText(ActivityLog.Url ?? "");
Clipboard.SetDataObject(ActivityLog.Url ?? "");
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? "");
}
}
}
Expand All @@ -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 ?? "");
}
}
}
Expand Down

0 comments on commit b10e18c

Please sign in to comment.