Skip to content

Commit

Permalink
Minor formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Oct 26, 2016
1 parent d982376 commit d85c4da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions atom/browser/api/atom_api_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion atom/browser/native_window_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "atom/browser/native_window_mac.h"

#include <string>
#include <Quartz/Quartz.h>
#include <string>

#include "atom/browser/window_list.h"
#include "atom/common/color_util.h"
Expand Down
6 changes: 3 additions & 3 deletions docs/api/browser-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit d85c4da

Please sign in to comment.