fix(data): defer data directory migration until restart

This commit is contained in:
digua committed 2026-06-03 00:46:34 +08:00
1 parent f978845dde
commit 04c97ca9cf
9 files changed
+384 -92

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ export const cacheApi = {
setDataDir: (
path: string | null,
migrate: boolean = true
): Promise<{ success: boolean; error?: string; from?: string; to?: string }> => {
): Promise<{ success: boolean; error?: string; from?: string; to?: string; requiresRelaunch?: boolean }> => {
return ipcRenderer.invoke('cache:setDataDir', { path, migrate })
},
}