From: Cheng Zhao Date: Mon, 5 Jan 2015 23:29:26 +0000 (-0800) Subject: File dialogs don't need icon X-Git-Tag: v0.20.4~1^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ecb9e933942e6c891d1fe8a9855b7590d4e49cf4;p=electron.git File dialogs don't need icon --- diff --git a/atom/browser/api/atom_api_dialog.cc b/atom/browser/api/atom_api_dialog.cc index e405cfb9..5834b73e 100644 --- a/atom/browser/api/atom_api_dialog.cc +++ b/atom/browser/api/atom_api_dialog.cc @@ -69,7 +69,6 @@ void ShowMessageBox(int type, void ShowOpenDialog(const std::string& title, const base::FilePath& default_path, const file_dialog::Filters& filters, - const gfx::ImageSkia& icon, int properties, atom::NativeWindow* window, mate::Arguments* args) { @@ -91,7 +90,6 @@ void ShowOpenDialog(const std::string& title, void ShowSaveDialog(const std::string& title, const base::FilePath& default_path, const file_dialog::Filters& filters, - const gfx::ImageSkia& icon, atom::NativeWindow* window, mate::Arguments* args) { v8::Handle peek = args->PeekNext(); diff --git a/atom/browser/api/lib/dialog.coffee b/atom/browser/api/lib/dialog.coffee index ef458d6f..ddb5a20a 100644 --- a/atom/browser/api/lib/dialog.coffee +++ b/atom/browser/api/lib/dialog.coffee @@ -42,7 +42,6 @@ module.exports = options.title ?= '' options.defaultPath ?= '' options.filters ?= [] - options.icon ?= null wrappedCallback = if typeof callback is 'function' @@ -65,7 +64,6 @@ module.exports = options.title ?= '' options.defaultPath ?= '' options.filters ?= [] - options.icon ?= null wrappedCallback = if typeof callback is 'function'