mac: Add showHiddenFiles property for showOpenDialog

This commit is contained in:
Cheng Zhao 2016-07-11 13:30:18 +09:00
parent 33e8d5e0aa
commit f08ac07737
3 changed files with 10 additions and 6 deletions

View file

@ -86,6 +86,8 @@ void SetupDialogForProperties(NSOpenPanel* dialog, int properties) {
[dialog setCanCreateDirectories:YES];
if (properties & FILE_DIALOG_MULTI_SELECTIONS)
[dialog setAllowsMultipleSelection:YES];
if (properties & FILE_DIALOG_SHOW_HIDDEN_FILES)
[dialog setShowsHiddenFiles:YES];
}
// Run modal dialog with parent window and return user's choice.