🎨 Add documentation

This commit is contained in:
Shubham 2017-06-03 11:48:18 -04:00
parent 217ddd629d
commit c2603aaac2

View file

@ -75,8 +75,11 @@ void SetupDialog(NSSavePanel* dialog,
if (settings.filters.empty()) if (settings.filters.empty())
[dialog setAllowsOtherFileTypes:YES]; [dialog setAllowsOtherFileTypes:YES];
else else {
// Set setAllowedFileTypes before setNameFieldStringValue as it might
// override the extension set using setNameFieldStringValue
SetAllowedFileTypes(dialog, settings.filters); SetAllowedFileTypes(dialog, settings.filters);
}
if (default_dir) if (default_dir)
[dialog setDirectoryURL:[NSURL fileURLWithPath:default_dir]]; [dialog setDirectoryURL:[NSURL fileURLWithPath:default_dir]];