mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
This commit is contained in:
parent
aa5acf39cf
commit
f600cc1bde
4 changed files with 31 additions and 29 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import {App} from "../index";
|
||||
import {getCurrentWindow} from "@electron/remote";
|
||||
import {Constants} from "../constants";
|
||||
import { ipcRenderer } from "electron";
|
||||
|
||||
export const closeWindow = async (app: App) => {
|
||||
for (let i = 0; i < app.plugins.length; i++) {
|
||||
|
|
@ -9,5 +10,5 @@ export const closeWindow = async (app: App) => {
|
|||
console.error(e);
|
||||
}
|
||||
}
|
||||
getCurrentWindow().destroy();
|
||||
ipcRenderer.send(Constants.SIYUAN_CMD, "destroy");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue