This commit is contained in:
Vanessa 2023-10-08 16:17:33 +08:00
parent 844c5ce688
commit ec65118339
6 changed files with 56 additions and 52 deletions

View file

@ -643,6 +643,7 @@ export const genImportMenu = (notebookId: string, pathString: string) => {
filters = [{name: "Markdown", extensions: ["md", "markdown"]}];
}
const localPath = await ipcRenderer.invoke(Constants.SIYUAN_DIALOG, {
type: "showOpenDialog",
defaultPath: window.siyuan.config.system.homeDir,
filters,
properties: [isDoc ? "openFile" : "openDirectory"],