From 2cd721263e00f6dd9bc2d0265084608360004754 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 16 Mar 2025 17:39:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D'=E4=BB=BB=E5=8A=A1=E6=A0=8F'?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E5=85=B3=E9=97=AD=E7=AA=97=E5=8F=A3=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E7=A8=8B=E5=BA=8F=E5=B9=B6=E6=B2=A1=E6=9C=89=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E9=80=80=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main/main/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron/main/main/index.ts b/electron/main/main/index.ts index ee2733f..e56c43a 100644 --- a/electron/main/main/index.ts +++ b/electron/main/main/index.ts @@ -183,6 +183,10 @@ function createMainWindow() { sendToWebContent("mainWindow", "onCollapseSubClassification", {}); } }); + // 主窗口关闭事件 + mainWindow.on("closed", () => { + app.quit(); + }); // 创建鼠标hook let mousedownClassName = null; addon.createMouseHook((...args: any[]) => {