🎨 Add documentation
This commit is contained in:
parent
217ddd629d
commit
c2603aaac2
1 changed files with 4 additions and 1 deletions
|
@ -75,8 +75,11 @@ void SetupDialog(NSSavePanel* dialog,
|
|||
|
||||
if (settings.filters.empty())
|
||||
[dialog setAllowsOtherFileTypes:YES];
|
||||
else
|
||||
else {
|
||||
// Set setAllowedFileTypes before setNameFieldStringValue as it might
|
||||
// override the extension set using setNameFieldStringValue
|
||||
SetAllowedFileTypes(dialog, settings.filters);
|
||||
}
|
||||
|
||||
if (default_dir)
|
||||
[dialog setDirectoryURL:[NSURL fileURLWithPath:default_dir]];
|
||||
|
|
Loading…
Reference in a new issue