修复 MacOS 平台在 Finder 打开文件或目录时应用卡死的问题(#1684)
This commit is contained in:
@@ -494,6 +494,12 @@ export const openSaveDir = async(options: Electron.SaveDialogOptions) => {
|
||||
return rendererInvoke<Electron.SaveDialogOptions, Electron.SaveDialogReturnValue>(WIN_MAIN_RENDERER_EVENT_NAME.show_save_dialog, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* 在资源管理器中定位文件
|
||||
*/
|
||||
export const openDirInExplorer = async(path: string) => {
|
||||
return rendererSend<string>(WIN_MAIN_RENDERER_EVENT_NAME.open_dir_in_explorer, path)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取缓存大小
|
||||
|
||||
Reference in New Issue
Block a user