Selaa lähdekoodia

:art: Set the default workspace path to `~/SiYuan/` on the desktop end https://github.com/siyuan-note/siyuan/issues/8602

Daniel 2 vuotta sitten
vanhempi
commit
713bbf9a43
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/electron/init.html

+ 1 - 1
app/electron/init.html

@@ -347,7 +347,7 @@
             const {dialog} = require('@electron/remote')
             const path = require('path')
             dialog.showOpenDialog({
-                defaultPath: path.join(decodeURIComponent(getSearch('home')), 'Documents'),
+                defaultPath: decodeURIComponent(getSearch('home')),
                 properties: ['openDirectory', 'createDirectory'],
             }).then((result) => {
                 if (result.canceled) {