allow user to create new directory when choosing download directory
This commit is contained in:
parent
e9ece65d68
commit
0798f60c70
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue