feat: 完善剩余功能
This commit is contained in:
@@ -199,12 +199,6 @@ app.on("activate", function () {
|
||||
}
|
||||
});
|
||||
|
||||
// 应用退出前
|
||||
app.on("before-quit", () => {
|
||||
// 清理Python进程
|
||||
backendService.stopPythonBackend();
|
||||
});
|
||||
|
||||
// 监听第二实例启动事件
|
||||
app.on("second-instance", (event, commandLine, workingDirectory) => {
|
||||
// 当尝试启动第二个实例时,让主窗口获得焦点
|
||||
|
||||
Reference in New Issue
Block a user