Merge pull request #239 from seanyesmunt/master
allow user to create new directory when choosing download directory
This commit is contained in:
commit
2cecd20c16
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ class FileSelector extends React.PureComponent {
|
||||||
handleButtonClick() {
|
handleButtonClick() {
|
||||||
remote.dialog.showOpenDialog(
|
remote.dialog.showOpenDialog(
|
||||||
{
|
{
|
||||||
properties: [this.props.type == "file" ? "openFile" : "openDirectory"],
|
properties: this.props.type == "file"
|
||||||
|
? ["openFile"]
|
||||||
|
: ["openDirectory", "createDirectory"],
|
||||||
},
|
},
|
||||||
paths => {
|
paths => {
|
||||||
if (!paths) {
|
if (!paths) {
|
||||||
|
|
Loading…
Reference in a new issue