Allow opening workspace if sync dir not empty

This commit is contained in:
Gregory Schier
2025-02-25 06:54:30 -08:00
parent 2db72fe6ef
commit 7af8c95fea
5 changed files with 48 additions and 24 deletions

View File

@@ -63,6 +63,7 @@ export function WorkspaceSettingsDialog({ workspaceId, hide, openSyncMenu }: Pro
<SyncToFilesystemSetting
value={{ filePath: workspaceMeta.settingSyncDir }}
forceOpen={openSyncMenu}
onCreateNewWorkspace={hide}
onChange={({ filePath }) => {
upsertWorkspaceMeta.mutate({ ...workspaceMeta, settingSyncDir: filePath });
}}