From 2120009c8cacb2229ab6c8370fe7fdaf7bb01c69 Mon Sep 17 00:00:00 2001 From: RoyirinRosmontis Date: Mon, 24 Aug 2026 12:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20-=20=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E7=82=B9=E5=87=BB=E3=80=8C=E6=A3=80=E6=9F=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E3=80=8D=E6=97=A0=E8=A7=86=E3=80=8C=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=9B=B4=E6=96=B0=E3=80=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=EF=BC=9A=E5=BF=85=E5=AE=9A=E8=BE=93=E5=87=BA=E6=97=A5=E5=BF=97?= =?UTF-8?q?=EF=BC=8C=E5=8F=91=E7=8E=B0=E6=96=B0=E7=89=88=E6=9C=AC=E6=97=B6?= =?UTF-8?q?=E7=85=A7=E5=B8=B8=E5=BC=B9=E7=AA=97=E8=AF=A2=E9=97=AE=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=EF=BC=88=E8=B7=B3=E8=BF=87=E8=AE=BE=E7=BD=AE=E5=8F=AA?= =?UTF-8?q?=E4=BD=9C=E7=94=A8=E4=BA=8E=E5=90=AF=E5=8A=A8=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=A3=80=E6=9F=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lite/proxy_lite.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lite/proxy_lite.py b/lite/proxy_lite.py index fc50af7..effcb6d 100644 --- a/lite/proxy_lite.py +++ b/lite/proxy_lite.py @@ -1541,7 +1541,7 @@ class SettingsDialog(QDialog): parent._update_done.connect(self._on_check_done) except TypeError: pass # 已连接过,忽略 - threading.Thread(target=parent._check_update, daemon=True).start() + threading.Thread(target=parent._check_update, kwargs={"manual": True}, daemon=True).start() def _on_check_done(self): self.lb_hint.setText("检查完成,结果见主界面日志") @@ -2145,14 +2145,14 @@ class MainWindow(QWidget): self.traffic_up.setText(f"↑{_fmt_bytes(up_rate)}/s") self.traffic_down.setText(f"↓{_fmt_bytes(down_rate)}/s") self.traffic_total.setText(_fmt_bytes(up_total + down_total)) - def _check_update(self): - """后台检查服务器是否有新版本。""" + def _check_update(self, manual=False): + """后台检查服务器是否有新版本;manual=True 时无视「跳过检查更新」设置。""" # 先初始化结果,任何路径(含跳过)完成后 _on_update_done 都能安全读取 self._latest_version = "" self._download_url = "" try: - if _skip_update_check(): - return # 设置跳过:不检查也不打日志 + if _skip_update_check() and not manual: + return # 设置跳过(仅自动检查):不检查也不打日志 import json, urllib.request # 基于 Gitea 仓库 releases API 检查更新;config.json 无 update_url 时用默认地址 url = str(_config_val("update_url", "") or "").strip()