From d85c4da11b7e577a0b96bfef1e576962044c3daa Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 26 Oct 2016 09:55:34 +0900 Subject: [PATCH] Minor formatting tweaks --- atom/browser/api/atom_api_window.cc | 3 +-- atom/browser/native_window_mac.mm | 2 +- docs/api/browser-window.md | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index ae37f504cad0..88b0459c26db 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -731,9 +731,8 @@ void Window::SetAspectRatio(double aspect_ratio, mate::Arguments* args) { void Window::PreviewFile(const std::string& path, mate::Arguments* args) { std::string display_name; - if (!args->GetNext(&display_name)) { + if (!args->GetNext(&display_name)) display_name = path; - } window_->PreviewFile(path, display_name); } diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index d9de9bd3ca15..95423e0851e4 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -4,8 +4,8 @@ #include "atom/browser/native_window_mac.h" -#include #include +#include #include "atom/browser/window_list.h" #include "atom/common/color_util.h" diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index b891396dba48..059c9f152de0 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -664,11 +664,11 @@ the player itself we would call this function with arguments of 16/9 and are within the content view--only that they exist. Just sum any extra width and height areas you have within the overall content view. -#### `win.previewFile(pathname[, displayName])` _macOS_ +#### `win.previewFile(path[, displayName])` _macOS_ * `path` String - The absolute path to the file to preview with QuickLook. This - is important as Quick Look uses the file name and file extension on the path to - determine the content type of the file to open. + is important as Quick Look uses the file name and file extension on the path + to determine the content type of the file to open. * `displayName` String (Optional) - The name of the file to display on the Quick Look modal view. This is purely visual and does not affect the content type of the file. Defaults to `path`.