Sfoglia il codice sorgente

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

Tienson Qin 5 anni fa
parent
commit
b7b02b22da
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      resources/js/preload.js

+ 5 - 1
resources/js/preload.js

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