Explorar o código

Merge branch 'master' of github.com:logseq/logseq

Tienson Qin %!s(int64=5) %!d(string=hai) anos
pai
achega
b7b02b22da
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      resources/js/preload.js

+ 5 - 1
resources/js/preload.js

@@ -55,7 +55,11 @@ contextBridge.exposeInMainWorld('apis', {
   },
   },
 
 
   showItemInFolder (fullpath) {
   showItemInFolder (fullpath) {
-    shell.showItemInFolder(fullpath)
+    if (IS_WIN32) {
+      shell.openPath(path.dirname(fullpath))
+    } else {
+      shell.showItemInFolder(fullpath)
+    }
   },
   },
 
 
   /**
   /**