From 640d80e3343395a22443c8287f3f2a4acd6a9284 Mon Sep 17 00:00:00 2001 From: DLmaster Date: Sun, 3 Nov 2024 01:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=89=8D=E4=B8=BA=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E9=80=9A=E7=9F=A5=E4=BF=AE=E5=A4=8D=EF=BC=8C?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AUTO_MAA.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/AUTO_MAA.py b/AUTO_MAA.py index 5a29053..b7a99e0 100644 --- a/AUTO_MAA.py +++ b/AUTO_MAA.py @@ -2353,7 +2353,7 @@ class Main(QWidget): QMessageBox.critical( self.ui, "错误", - f"获取版本信息时出错: {e}", + f"获取版本信息时出错:\n{e}", ) return None version_remote = response.json() @@ -2384,11 +2384,8 @@ class Main(QWidget): self.updater.ui.show() elif main_version_remote > main_version_current: self.update_main() - if not ( - updater_version_remote > updater_version_current - or main_version_remote > main_version_current - ): - self.push_notification("已是最新版本~", " ", " ", 10) + else: + self.push_notification("已是最新版本~", " ", " ", 10) def update_main(self): subprocess.Popen(