This commit is contained in:
Vanessa 2023-10-08 16:28:00 +08:00
parent ec65118339
commit b869fd1d9d
8 changed files with 29 additions and 18 deletions

View file

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