From 854642af2cf2ac2f79092859f4a0c27357225442 Mon Sep 17 00:00:00 2001 From: lhye200 Date: Sun, 17 May 2026 22:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=92=9F=E4=B8=8D=E5=88=B7=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 999129b..047604a 100644 --- a/main.py +++ b/main.py @@ -360,9 +360,9 @@ class MainWindow(QWidget): self._wifi_label.setStyleSheet("color: #e86c60; font-size: 18px; font-weight: 600;") # --- 时钟(有网络时更新;断网后保留最后一次的时间) --- + now = datetime.now() + self._clock_label.setText(now.strftime("%H:%M:%S")) if is_connected: - now = datetime.now() - self._clock_label.setText(now.strftime("%H:%M:%S")) if not self._clock_has_synced: self._clock_has_synced = True self._clock_label.show()