feat: add ability to create new directory in working dir selection (#3081)
This commit is contained in:
@@ -776,7 +776,7 @@ const openDirectoryDialog = async (
|
|||||||
replaceWindow: boolean = false
|
replaceWindow: boolean = false
|
||||||
): Promise<OpenDialogReturnValue> => {
|
): Promise<OpenDialogReturnValue> => {
|
||||||
const result = (await dialog.showOpenDialog({
|
const result = (await dialog.showOpenDialog({
|
||||||
properties: ['openFile', 'openDirectory'],
|
properties: ['openFile', 'openDirectory', 'createDirectory'],
|
||||||
})) as unknown as OpenDialogReturnValue;
|
})) as unknown as OpenDialogReturnValue;
|
||||||
|
|
||||||
if (!result.canceled && result.filePaths.length > 0) {
|
if (!result.canceled && result.filePaths.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user