]> khamidou — GitHub mirrors - electron.git/commitdiff
File dialogs don't need icon
authorCheng Zhao <zcbenz@gmail.com>
Mon, 5 Jan 2015 23:29:26 +0000 (15:29 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 5 Jan 2015 23:29:26 +0000 (15:29 -0800)
atom/browser/api/atom_api_dialog.cc
atom/browser/api/lib/dialog.coffee

index e405cfb9ed235485efca73e5f6fa93db23b16a6d..5834b73e6b6dedc484db35cb21488561bc41d548 100644 (file)
@@ -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<v8::Value> peek = args->PeekNext();
index ef458d6fdfbe6feaccf6f7de49b56dbc78c203dd..ddb5a20a7809b34e7eabf14711c70eaef065342c 100644 (file)
@@ -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'