mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Fix code formatting
This commit is contained in:
@@ -139,9 +139,8 @@ bool ShowOpenDialog(atom::NativeWindow* parent_window,
|
||||
DCHECK(paths);
|
||||
NSOpenPanel* dialog = [NSOpenPanel openPanel];
|
||||
|
||||
SetupDialog(dialog, title, button_label, default_path, filters, message,
|
||||
// NSOpenPanel does not support name_field_label and shows_tag_field
|
||||
"", false);
|
||||
// NSOpenPanel does not support name_field_label and shows_tag_field
|
||||
SetupDialog(dialog, title, button_label, default_path, filters, message, "", false);
|
||||
SetupDialogForProperties(dialog, properties);
|
||||
|
||||
int chosen = RunModalDialog(dialog, parent_window);
|
||||
@@ -162,9 +161,8 @@ void ShowOpenDialog(atom::NativeWindow* parent_window,
|
||||
const OpenDialogCallback& c) {
|
||||
NSOpenPanel* dialog = [NSOpenPanel openPanel];
|
||||
|
||||
SetupDialog(dialog, title, button_label, default_path, filters, message,
|
||||
// NSOpenPanel does not support name_field_label and shows_tag_field
|
||||
"", false);
|
||||
// NSOpenPanel does not support name_field_label and shows_tag_field
|
||||
SetupDialog(dialog, title, button_label, default_path, filters, message, "", false);
|
||||
SetupDialogForProperties(dialog, properties);
|
||||
|
||||
// Duplicate the callback object here since c is a reference and gcd would
|
||||
|
||||
@@ -81,8 +81,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
let {buttonLabel, defaultPath, filters, properties, title,
|
||||
message} = options
|
||||
let {buttonLabel, defaultPath, filters, properties, title, message} = options
|
||||
|
||||
if (properties == null) {
|
||||
properties = ['openFile']
|
||||
|
||||
Reference in New Issue
Block a user