Skip to content
Browse files

Use sheets for file dialogs

  • Loading branch information...
1 parent 7bd36d0 commit 7c992f8b19d51e266e826ec59d439b423361e619 @gruehle gruehle committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 appshell/appshell_extensions_mac.mm
View
2 appshell/appshell_extensions_mac.mm
@@ -312,11 +312,13 @@ int32 ShowOpenDialog(bool allowMulitpleSelection,
[openPanel setAllowedFileTypes:allowedFileTypes];
+ [openPanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:nil];
if ([openPanel runModal] == NSOKButton)
{
NSArray* files = [openPanel filenames];
NSArrayToCefList(files, selectedFiles);
}
+ [NSApp endSheet:openPanel];
return NO_ERROR;
}

0 comments on commit 7c992f8

Please sign in to comment.
Something went wrong with that request. Please try again.