Skip to content

Commit cb79e1a

Browse files
committed
FIX: OpenFolderPanel dialog has no option to create new directory on Mac #33
1 parent deb4629 commit cb79e1a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Plugins/MacOS/StandaloneFileBrowser/Plugin.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ - (NSOpenPanel*)createOpenPanel:(NSString*)title
196196
[panel setCanChooseDirectories:canChooseFolders];
197197
[panel setAllowsMultipleSelection:multiselect];
198198
[panel setDirectoryURL:[NSURL fileURLWithPath:directory]];
199+
if ([panel respondsToSelector:@selector(setCanCreateDirectories:)]) {
200+
[panel setCanCreateDirectories:YES];
201+
}
199202

200203
return panel;
201204
}

0 commit comments

Comments
 (0)