force select folder

This commit is contained in:
Devin A. Conley 2025-11-16 14:51:22 -08:00
parent 5db60bbf43
commit 10e76b32c4

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;