Skip to content

Commit

Permalink
Fix nwjs/nw.js#6886: input file nwsaveas property is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Dec 5, 2018
1 parent a0cae10 commit d007c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion third_party/blink/public/web/web_file_chooser_params.h
Expand Up @@ -76,7 +76,6 @@ struct WebFileChooserParams {

WebString initial_path;
bool extract_directory = true;
bool save_as = false;

};

Expand Down
Expand Up @@ -171,7 +171,8 @@ void FileInputType::HandleDOMActivateEvent(Event& event) {
input.FastHasAttribute(captureAttr);
params.requestor = document.Url();
params.initial_path = input.nwworkingdir();
params.save_as = input.FastHasAttribute(nwsaveasAttr);
if (input.FastHasAttribute(nwsaveasAttr))
params.mode = WebFileChooserParams::Mode::kSave;
params.initial_value = input.nwsaveas();
params.extract_directory = input.FastHasAttribute(webkitdirectoryAttr);
if (params.selected_files.size() > 0)
Expand Down

0 comments on commit d007c29

Please sign in to comment.