allow user to create new directory when choosing download directory

This commit is contained in:
Sean Yesmunt 2017-06-14 21:03:20 -07:00
parent e9ece65d68
commit 0798f60c70

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) {