mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-8198: substituting empty extension with the "Unix executable" type in the macOS file dialog (#479)
(cherry picked from commit cf45f88d9d0d93bdcd09afda07c4b77857bcc5a5)
This commit is contained in:
committed by
Vitaly Provodin
parent
d13f7cfd9f
commit
a6d06afaf2
@@ -145,6 +145,8 @@ canCreateDirectories:(BOOL)inCreateDirectories
|
||||
UTType *contentType = [UTType typeWithFilenameExtension:fileType conformingToType:UTTypeData];
|
||||
if (contentType != nil) {
|
||||
[contentTypes addObject:contentType];
|
||||
} else if (fileType.length == 0) {
|
||||
[contentTypes addObject:UTTypeUnixExecutable];
|
||||
}
|
||||
}
|
||||
[thePanel setAllowedContentTypes:contentTypes];
|
||||
|
||||
Reference in New Issue
Block a user