Merge pull request #239 from seanyesmunt/master

allow user to create new directory when choosing download directory
This commit is contained in:
Jeremy Kauffman 2017-06-15 09:37:26 -04:00 committed by GitHub
commit 2cecd20c16

View file

@ -21,7 +21,9 @@ class FileSelector extends React.PureComponent {
handleButtonClick() {
remote.dialog.showOpenDialog(
{
properties: [this.props.type == "file" ? "openFile" : "openDirectory"],
properties: this.props.type == "file"
? ["openFile"]
: ["openDirectory", "createDirectory"],
},
paths => {
if (!paths) {