mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
...
This commit is contained in:
@@ -4659,7 +4659,7 @@ _glfwPlatformStartDrag(_GLFWwindow* window, const GLFWimage* thumbnail) {@autore
|
|||||||
NSString* extension = @"data";
|
NSString* extension = @"data";
|
||||||
if (mimeType) {
|
if (mimeType) {
|
||||||
UTType *type = [UTType typeWithMIMEType:@(mimeType)];
|
UTType *type = [UTType typeWithMIMEType:@(mimeType)];
|
||||||
extension = type.preferredFilenameExtension;
|
if (type) extension = type.preferredFilenameExtension;
|
||||||
}
|
}
|
||||||
return [NSString stringWithFormat:@"kitty-drag-source-%@.%@", [[NSUUID UUID] UUIDString], extension];
|
return [NSString stringWithFormat:@"kitty-drag-source-%@.%@", [[NSUUID UUID] UUIDString], extension];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user