mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(data): defer data directory migration until restart
This commit is contained in:
1 parent
f978845dde
commit
04c97ca9cf
9 files changed
+384
-92
No files matched your search
@@ -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 })
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user