From c02866d135185e35d9d32c09a2c72e0cbc6436b1 Mon Sep 17 00:00:00 2001 From: RB Date: Mon, 28 Apr 2025 23:10:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E4=BC=9A=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=A0=E9=99=A4=E4=BB=93=E5=BA=93=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MRobot.py | 3 +++ MRobot_repo | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 160000 MRobot_repo diff --git a/MRobot.py b/MRobot.py index a45cfaf..6dc41e4 100644 --- a/MRobot.py +++ b/MRobot.py @@ -177,6 +177,9 @@ class MRobotApp: root.title("MRobot 自动生成脚本") root.geometry("800x600") # 调整窗口大小以适应布局 + # 在窗口关闭时调用 on_closing 方法 + root.protocol("WM_DELETE_WINDOW", lambda: self.on_closing(root)) + # 初始化 BooleanVar self.add_gitignore_var = tk.BooleanVar(value=True) diff --git a/MRobot_repo b/MRobot_repo deleted file mode 160000 index 4539cfb..0000000 --- a/MRobot_repo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4539cfb332e1d96d7ac5b0d9c735a75900a2aa0c