This commit is contained in:
Kovid Goyal
2026-05-14 15:27:26 +05:30
parent 307717213b
commit 61ea2b4a38

View File

@@ -4659,7 +4659,7 @@ _glfwPlatformStartDrag(_GLFWwindow* window, const GLFWimage* thumbnail) {@autore
NSString* extension = @"data";
if (mimeType) {
UTType *type = [UTType typeWithMIMEType:@(mimeType)];
extension = type.preferredFilenameExtension;
if (type) extension = type.preferredFilenameExtension;
}
return [NSString stringWithFormat:@"kitty-drag-source-%@.%@", [[NSUUID UUID] UUIDString], extension];
}