diff --git a/osu.Framework/Platform/SDL/SDL3Clipboard.cs b/osu.Framework/Platform/SDL/SDL3Clipboard.cs
index 92a2eb83f2..786da27fd5 100644
--- a/osu.Framework/Platform/SDL/SDL3Clipboard.cs
+++ b/osu.Framework/Platform/SDL/SDL3Clipboard.cs
@@ -187,7 +187,7 @@ private class ClipboardCallbackContext : IDisposable
///
/// Length of the returned by the .
///
- public UIntPtr DataLength;
+ public UIntPtr DataLength { get; private set; }
public ClipboardCallbackContext(string mimeType, Func> dataProvider)
{