From d78a764d8766a9f6cc850fee29500372dcd802c8 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Sat, 17 May 2025 00:07:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=90=9C=E7=B4=A2ADB?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E7=AD=89=E5=BE=85=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/MAA.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/models/MAA.py b/app/models/MAA.py index 90e9bc2..f946a61 100644 --- a/app/models/MAA.py +++ b/app/models/MAA.py @@ -656,7 +656,9 @@ class MaaManager(QObject): ) current_date = datetime.now().strftime("%m-%d") self.push_notification( - "统计信息", f"{current_date} | 用户 {user[0]} 的自动代理统计报告", statistics + "统计信息", + f"{current_date} | 用户 {user[0]} 的自动代理统计报告", + statistics, ) if run_book["Annihilation"] and run_book["Routine"]: @@ -897,7 +899,10 @@ class MaaManager(QObject): f"即将搜索ADB实际地址\n正在等待模拟器完成启动\n请等待{self.wait_time}s" ) - time.sleep(self.wait_time) + for _ in range(self.wait_time): + if self.isInterruptionRequested: + break + time.sleep(1) if "-" in self.ADB_address: ADB_ip = f"{self.ADB_address.split("-")[0]}-"