mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-06-10 15:35:32 +08:00
feat: 数据目录迁移后立即重启软件
This commit is contained in:
@@ -96,5 +96,11 @@ export const extendedApi = {
|
||||
setAnalyticsEnabled: (enabled: boolean): Promise<{ success: boolean }> => {
|
||||
return ipcRenderer.invoke('analytics:setEnabled', enabled)
|
||||
},
|
||||
/**
|
||||
* 重启应用
|
||||
*/
|
||||
relaunch: (): Promise<void> => {
|
||||
return ipcRenderer.invoke('app:relaunch')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user