mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
force select folder
This commit is contained in:
parent
5db60bbf43
commit
10e76b32c4
1 changed files with 8 additions and 1 deletions
|
|
@ -138,7 +138,14 @@ export const initLocalFileSyncAdapter = (): void => {
|
|||
|
||||
ipcMain.handle(IPC.PICK_DIRECTORY, async (): Promise<string | undefined> => {
|
||||
const { canceled, filePaths } = await dialog.showOpenDialog(getWin(), {
|
||||
properties: ['openDirectory'],
|
||||
title: 'Select sync folder',
|
||||
buttonLabel: 'Select Folder',
|
||||
properties: [
|
||||
'openDirectory',
|
||||
'createDirectory',
|
||||
'promptToCreate',
|
||||
'dontAddToRecent',
|
||||
],
|
||||
});
|
||||
if (canceled) {
|
||||
return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue