mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
Merge pull request #5532 from devinaconley/master
local file sync select folder
This commit is contained in:
commit
aafd039dab
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