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