This commit is contained in:
Vanessa 2023-10-10 16:15:24 +08:00
parent b0e3efa774
commit 2c36af78bc
14 changed files with 25 additions and 26 deletions

View file

@ -178,7 +178,7 @@ export const openFile = async (options: IOpenFileOptions) => {
hasMatch = await ipcRenderer.invoke(Constants.SIYUAN_GET, {
cmd: Constants.SIYUAN_OPEN_FILE,
options: optionsClone,
})
});
if (hasMatch) {
if (options.afterOpen) {
options.afterOpen();