Fix code formatting
This commit is contained in:
parent
a4a71a1dc9
commit
347dc835b5
2 changed files with 5 additions and 8 deletions
|
@ -139,9 +139,8 @@ bool ShowOpenDialog(atom::NativeWindow* parent_window,
|
||||||
DCHECK(paths);
|
DCHECK(paths);
|
||||||
NSOpenPanel* dialog = [NSOpenPanel openPanel];
|
NSOpenPanel* dialog = [NSOpenPanel openPanel];
|
||||||
|
|
||||||
SetupDialog(dialog, title, button_label, default_path, filters, message,
|
// NSOpenPanel does not support name_field_label and shows_tag_field
|
||||||
// NSOpenPanel does not support name_field_label and shows_tag_field
|
SetupDialog(dialog, title, button_label, default_path, filters, message, "", false);
|
||||||
"", false);
|
|
||||||
SetupDialogForProperties(dialog, properties);
|
SetupDialogForProperties(dialog, properties);
|
||||||
|
|
||||||
int chosen = RunModalDialog(dialog, parent_window);
|
int chosen = RunModalDialog(dialog, parent_window);
|
||||||
|
@ -162,9 +161,8 @@ void ShowOpenDialog(atom::NativeWindow* parent_window,
|
||||||
const OpenDialogCallback& c) {
|
const OpenDialogCallback& c) {
|
||||||
NSOpenPanel* dialog = [NSOpenPanel openPanel];
|
NSOpenPanel* dialog = [NSOpenPanel openPanel];
|
||||||
|
|
||||||
SetupDialog(dialog, title, button_label, default_path, filters, message,
|
// NSOpenPanel does not support name_field_label and shows_tag_field
|
||||||
// NSOpenPanel does not support name_field_label and shows_tag_field
|
SetupDialog(dialog, title, button_label, default_path, filters, message, "", false);
|
||||||
"", false);
|
|
||||||
SetupDialogForProperties(dialog, properties);
|
SetupDialogForProperties(dialog, properties);
|
||||||
|
|
||||||
// Duplicate the callback object here since c is a reference and gcd would
|
// 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,
|
let {buttonLabel, defaultPath, filters, properties, title, message} = options
|
||||||
message} = options
|
|
||||||
|
|
||||||
if (properties == null) {
|
if (properties == null) {
|
||||||
properties = ['openFile']
|
properties = ['openFile']
|
||||||
|
|
Loading…
Reference in a new issue