mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
...
This commit is contained in:
parent
307717213b
commit
61ea2b4a38
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue