fix(electron): open assets link in folder freezes file browser

Close #10491
This commit is contained in:
Andelf
2023-11-21 22:55:35 +08:00
parent 9bdcfcf791
commit 5ca28a3a56
5 changed files with 11 additions and 13 deletions

View File

@@ -90,14 +90,6 @@ contextBridge.exposeInMainWorld('apis', {
await shell.openPath(path)
},
showItemInFolder (fullpath) {
if (IS_WIN32) {
shell.openPath(path.dirname(fullpath).replaceAll("/", "\\"))
} else {
shell.showItemInFolder(fullpath)
}
},
/**
* save all publish assets to disk
*