Vanessa 2024-10-29 12:40:12 +08:00
parent 63badb1c74
commit 9cc9a2862a
2 changed files with 9 additions and 2 deletions

View file

@ -230,6 +230,9 @@ export const initWindow = async (app: App) => {
});
}
ipcRenderer.on(Constants.SIYUAN_OPEN_FILE, (event, data) => {
if (!data.app) {
data.app = app;
}
openFile(data);
});
ipcRenderer.on(Constants.SIYUAN_SAVE_CLOSE, (event, close) => {