This commit is contained in:
Vanessa 2023-10-08 23:17:51 +08:00
parent 797716fa1d
commit 56f4b6274d
6 changed files with 35 additions and 31 deletions

View file

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