From 915ee596431339c7a7ef6aa3fb10a44d219330d5 Mon Sep 17 00:00:00 2001 From: DLmaster Date: Sat, 12 Apr 2025 06:43:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E6=B8=85=E7=90=86=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0=E5=99=A8=E6=94=B9=E4=B8=BA=E4=B8=BB?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E9=80=80=E5=87=BA=E6=97=B6=E8=BF=9B=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui/main_window.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/ui/main_window.py b/app/ui/main_window.py index 493d64a..309a0b0 100644 --- a/app/ui/main_window.py +++ b/app/ui/main_window.py @@ -238,10 +238,6 @@ class AUTO_MAA(MSFluentWindow): # 清理旧日志 self.clean_old_logs() - # 清理临时更新器 - if (Config.app_path / "AUTO_Updater.active.exe").exists(): - (Config.app_path / "AUTO_Updater.active.exe").unlink() - # 检查密码 self.setting.check_PASSWORD() @@ -403,6 +399,11 @@ class AUTO_MAA(MSFluentWindow): self.show_ui("隐藏到托盘", if_quick=True) + # 清理临时更新器 + if (Config.app_path / "AUTO_Updater.active.exe").exists(): + System.kill_process(Config.app_path / "AUTO_Updater.active.exe") + (Config.app_path / "AUTO_Updater.active.exe").unlink() + # 清理各功能线程 MainTimer.Timer.stop() MainTimer.Timer.deleteLater()