feat: 完善剩余功能

This commit is contained in:
ethan.chen
2025-11-05 14:24:15 +08:00
parent f67a3835fa
commit 73945c40e5
8 changed files with 105 additions and 59 deletions

View File

@@ -199,12 +199,6 @@ app.on("activate", function () {
}
});
// 应用退出前
app.on("before-quit", () => {
// 清理Python进程
backendService.stopPythonBackend();
});
// 监听第二实例启动事件
app.on("second-instance", (event, commandLine, workingDirectory) => {
// 当尝试启动第二个实例时,让主窗口获得焦点