Merge pull request #5532 from devinaconley/master

local file sync select folder
This commit is contained in:
Johannes Millan 2025-11-17 12:31:53 +01:00 committed by GitHub
commit aafd039dab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;