macOS: Fixed open dialog crash.

This commit is contained in:
Бранимир Караџић
2025-07-26 08:05:18 -07:00
parent d3dd8fb457
commit 23baae9e00

View File

@@ -104,7 +104,7 @@ bool openFileSelectionDialog(
panel.message = [[NSString alloc] initWithBytes:_title.getPtr() length:_title.getLength() encoding:NSASCIIStringEncoding];
panel.directoryURL = [NSURL URLWithString:@(_inOutFilePath.getCPtr())];
panel.allowedContentTypes = fileTypes;
panel.allowedFileTypes = fileTypes;
if ([panel runModal] == NSModalResponseOK)
{